Messages in this thread Patch in this message | | | Date | Fri, 26 Mar 2004 08:19:46 -0600 | From | mike.miller@hp ... | Subject | Re: FW: cciss update for 2.6 -- resubmit |
| |
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))) - 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/
| |