* Re: FW: cciss update for 2.6 -- resubmit
[not found] <D4CFB69C345C394284E4B78B876C1CF105BC1F6E@cceexc23.americas.cpqcorp.net>
@ 2004-03-26 14:19 ` mike.miller
0 siblings, 0 replies; only message in thread
From: mike.miller @ 2004-03-26 14:19 UTC (permalink / raw)
To: akpm, axboe; +Cc: linux-kernel
This is the right patch for 2.6. Sorry for my confusion.
cciss.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
diff -burpN lx265-rc2.orig/drivers/block/cciss.c lx265-rc2/drivers/block/cciss.c
--- lx265-rc2.orig/drivers/block/cciss.c 2004-03-12 10:10:47.000000000 -0600
+++ lx265-rc2/drivers/block/cciss.c 2004-03-26 08:09:52.000000000 -0600
@@ -469,11 +469,8 @@ static int cciss_ioctl(struct inode *ino
driver_geo.heads = drv->heads;
driver_geo.sectors = drv->sectors;
driver_geo.cylinders = drv->cylinders;
- } else {
- driver_geo.heads = 0xff;
- driver_geo.sectors = 0x3f;
- driver_geo.cylinders = (int)drv->nr_blocks / (0xff*0x3f);
- }
+ } else
+ return -ENXIO;
driver_geo.start= get_start_sect(inode->i_bdev);
if (copy_to_user((void *) arg, &driver_geo,
sizeof( struct hd_geometry)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-26 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <D4CFB69C345C394284E4B78B876C1CF105BC1F6E@cceexc23.americas.cpqcorp.net>
2004-03-26 14:19 ` FW: cciss update for 2.6 -- resubmit mike.miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®