From: Niklas Cassel Date: Thu, 16 Nov 2017 17:38:06 +0000 (+0100) Subject: scsi: pmcraid: use correct size unit when calling find_first_zero_bit() X-Git-Tag: v4.19~1382^2~263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36d9e0e8a77cfe6983940a266288f7c9d34c0b37;p=platform%2Fkernel%2Flinux-rpi3.git scsi: pmcraid: use correct size unit when calling find_first_zero_bit() find_first_zero_bit()'s parameter 'size' is defined in bits, not in bytes. Signed-off-by: Niklas Cassel Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index e58be98..201c8de 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -5216,7 +5216,7 @@ static unsigned short pmcraid_get_minor(void) { int minor; - minor = find_first_zero_bit(pmcraid_minor, sizeof(pmcraid_minor)); + minor = find_first_zero_bit(pmcraid_minor, PMCRAID_MAX_ADAPTERS); __set_bit(minor, pmcraid_minor); return minor; }