提交 36d9e0e8 编写于 作者: N Niklas Cassel 提交者: 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: NNiklas Cassel <niklas.cassel@axis.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册