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

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

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

Filename:/drivers/block/blkpg.c
Lines Added:3
Lines Deleted:3
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  blkpg.c

Patch

diff -u --recursive --new-file v2.4.12/linux/drivers/block/blkpg.c linux/drivers/block/blkpg.c
--- v2.4.12/linux/drivers/block/blkpg.c   Sun Sep 23 11:40:57 2001
+++ linux/drivers/block/blkpg.c   Mon Oct 15 13:27:42 2001
@@ -242,10 +242,10 @@
          /* add BLKGETSIZE64 too */
          g = get_gendisk(dev);
          if (!g)
-            longval = 0;
+            ulongval = 0;
          else
-            longval = g->part[MINOR(dev)].nr_sects;
-         return put_user(longval, (long *) arg);
+            ulongval = g->part[MINOR(dev)].nr_sects;
+         return put_user(ulongval, (unsigned long *) arg);
 #endif
 #if 0
       case BLKRRPART: /* Re-read partition tables */


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