Skip to content

Commit

Permalink
drm/amdkfd: max num of queues can't be 0
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Gabbay <[email protected]>
Reviewed-by: Jammy Zhou <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
  • Loading branch information
Oded Gabbay committed Feb 2, 2015
1 parent 8b58f26 commit ca400b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/amdkfd/kfd_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ static int __init kfd_module_init(void)
}

/* Verify module parameters */
if ((max_num_of_queues_per_device < 0) ||
if ((max_num_of_queues_per_device < 1) ||
(max_num_of_queues_per_device >
KFD_MAX_NUM_OF_QUEUES_PER_DEVICE)) {
pr_err("kfd: max_num_of_queues_per_device must be between 0 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n");
pr_err("kfd: max_num_of_queues_per_device must be between 1 to KFD_MAX_NUM_OF_QUEUES_PER_DEVICE\n");
return -1;
}

Expand Down

0 comments on commit ca400b2

Please sign in to comment.