[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120502061222.GA1111@elgon.mountain>
Date: Wed, 2 May 2012 09:12:22 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Anil Ravindranath <anil_ravindranath@...-sierra.com>
Cc: "James E.J. Bottomley" <JBottomley@...allels.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [patch] [SCSI] pmcraid: find_first_zero_bit() takes bits not bytes
The find_first_zero_bit() function takes the size in bits not bytes.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists