[PATCH 2.6] cciss: CCISS_GETLUNINFO fix
mike.miller_at_hp.com
Date: 11/29/04
- Previous message: Terry Griffin: "Re: odd behavior with r8169 and pcap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 16:07:25 -0600 To: akpm@osdl.org, axboe@suse.de
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@hp.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Terry Griffin: "Re: odd behavior with r8169 and pcap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|