[PATCH 2.6] cciss: CCISS_GETLUNINFO fix

From: mike . miller
Date: Mon Nov 29 2004 - 17:11:00 EST


This patch addresses a problem with reading the partition table struct.
The last time this was submitted it was rejected on the grounds that the driver
has no business reading the partition table. I don't disagree with that, but
we have legacy apps to consider. Changing the ioctl would break those apps
already in customers hands.

Please consider this for inclusion.

Signed-off-by: Mike Miller <mike.miller@xxxxxx>
Signed-off-by: Andrew Patterson <andrew.patterson@xxxxxx>

cciss.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--------------------------------------------------------------------------------
diff -urNp lx2610-rc1.orig/drivers/block/cciss.c lx2610-rc1-adrianb/drivers/block/cciss.c
--- lx2610-rc1.orig/drivers/block/cciss.c 2004-11-12 11:17:56.000000000 -0600
+++ lx2610-rc1-adrianb/drivers/block/cciss.c 2004-11-29 15:54:21.668060552 -0600
@@ -809,7 +809,7 @@ static int cciss_ioctl(struct inode *ino
luninfo.num_opens = drv->usage_count;
luninfo.num_parts = 0;
/* count partitions 1 to 15 with sizes > 0 */
- for(i=1; i <MAX_PART; i++) {
+ for(i=0; i < MAX_PART-1; i++) {
if (!disk->part[i])
continue;
if (disk->part[i]->nr_sects != 0)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/