linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] [SCSI] pmcraid: find_first_zero_bit() takes bits not bytes
@ 2012-05-02  6:12 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2012-05-02  6:12 UTC (permalink / raw)
  To: Anil Ravindranath
  Cc: James E.J. Bottomley, linux-scsi, linux-kernel, kernel-janitors

The find_first_zero_bit() function takes the size in bits not bytes.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index ea8a0b4..b0f6f0b 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -5379,7 +5379,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;
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-02  6:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-02  6:12 [patch] [SCSI] pmcraid: find_first_zero_bit() takes bits not bytes Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).