Commit 36d9e0e8 authored by Niklas Cassel's avatar Niklas Cassel Committed by Martin K. Petersen

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: default avatarNiklas Cassel <niklas.cassel@axis.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent afcfa2c8
...@@ -5216,7 +5216,7 @@ static unsigned short pmcraid_get_minor(void) ...@@ -5216,7 +5216,7 @@ static unsigned short pmcraid_get_minor(void)
{ {
int minor; 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); __set_bit(minor, pmcraid_minor);
return minor; return minor;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment