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>
This commit is contained in:
parent
afcfa2c8ed
commit
36d9e0e8a7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue