Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13 /drivers/block/xd.c

Filename:/drivers/block/xd.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.4.13-pre6  2.4.13-pre5  2.4.13-pre4  2.4.13-pre3  2.4.12-ac6  2.4.12-ac5 
(Following) 2.4.13-ac1  2.4.13-ac2  2.4.13-ac3  2.4.13-ac4  2.4.13-ac5  2.4.13-ac6 

Location
[  2.4.13
  [  drivers
    [  block
       o  xd.c

Patch

diff -u --recursive --new-file v2.4.12/linux/drivers/block/xd.c linux/drivers/block/xd.c
--- v2.4.12/linux/drivers/block/xd.c   Sun Sep 23 11:40:57 2001
+++ linux/drivers/block/xd.c   Mon Oct 15 13:27:41 2001
@@ -336,7 +336,7 @@
       }
       case BLKGETSIZE:
          if (!arg) return -EINVAL;
-         return put_user(xd_struct[MINOR(inode->i_rdev)].nr_sects,(long *) arg);
+         return put_user(xd_struct[MINOR(inode->i_rdev)].nr_sects,(unsigned long *) arg);
       case BLKGETSIZE64:
          return put_user((u64)xd_struct[MINOR(inode->i_rdev)].nr_sects << 9, (u64 *)arg);
       case HDIO_SET_DMA:


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.