summaryrefslogtreecommitdiff
path: root/drivers/scsi/pmcraid.c
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2017-11-16 20:38:06 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-12-08 05:22:37 +0300
commit36d9e0e8a77cfe6983940a266288f7c9d34c0b37 (patch)
tree23156010b8422dca8f363a763165c587ef533a6d /drivers/scsi/pmcraid.c
parentafcfa2c8ed637a2b7e567856b5d3daf02b172a38 (diff)
downloadlinux-36d9e0e8a77cfe6983940a266288f7c9d34c0b37.tar.xz
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 <niklas.cassel@axis.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r--drivers/scsi/pmcraid.c2
1 files changed, 1 insertions, 1 deletions
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;
}