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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=36d9e0e8a77cfe6983940a266288f7c9d34c0b37;p=openwrt%2Fstaging%2Fblogic.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 e58be98430b0..201c8de1853d 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; }