]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amdkfd: max num of queues can't be 0
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 29 Jan 2015 08:33:34 +0000 (10:33 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 2 Feb 2015 07:45:24 +0000 (09:45 +0200)
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_module.c

index a8be6df8534753fbaed2103a57a3f054838bc29a..1c385c23dd0b8e2ad4155972d53bc9fe8195d03a 100644 (file)
@@ -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;
        }