diff options
author | Niklas Cassel <niklas.cassel@axis.com> | 2017-11-16 20:38:06 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-08 05:22:37 +0300 |
commit | 36d9e0e8a77cfe6983940a266288f7c9d34c0b37 (patch) | |
tree | 23156010b8422dca8f363a763165c587ef533a6d /drivers | |
parent | afcfa2c8ed637a2b7e567856b5d3daf02b172a38 (diff) | |
download | linux-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')
-rw-r--r-- | drivers/scsi/pmcraid.c | 2 |
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; } |