ia64/xen-unstable

changeset 730:f2b5ad4cc6b1

bitkeeper revision 1.432.1.1 (3f69a6823abPhZ-hptkRCAxqIWVrZA)

xl_ide.c:
Fix bug when storing capacity of an xl_ide blkdev.
author kaf24@scramble.cl.cam.ac.uk
date Thu Sep 18 12:35:14 2003 +0000 (2003-09-18)
parents 37cb4dcb88fb
children 5916b2c0e9e3
files xenolinux-2.4.22-sparse/arch/xeno/drivers/block/xl_ide.c
line diff
     1.1 --- a/xenolinux-2.4.22-sparse/arch/xeno/drivers/block/xl_ide.c	Thu Sep 18 08:19:53 2003 +0000
     1.2 +++ b/xenolinux-2.4.22-sparse/arch/xeno/drivers/block/xl_ide.c	Thu Sep 18 12:35:14 2003 +0000
     1.3 @@ -94,7 +94,7 @@ static void setup_major(struct gendisk *
     1.4               (disk < base) || (disk >= (base + XLIDE_DEVS_PER_MAJOR)) ) 
     1.5              continue;
     1.6  
     1.7 -        ((xl_disk_t *)gd->real_devices)[disk].capacity =
     1.8 +        ((xl_disk_t *)gd->real_devices)[disk-base].capacity =
     1.9              xdi->disks[i].capacity;
    1.10  
    1.11          switch (xdi->disks[i].type)