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

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

Advertisement

Kernel v2.4.27-pre6 /fs/jfs/jfs_dmap.c

Filename:/fs/jfs/jfs_dmap.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.26  2.4.26-rc4  2.4.26-rc3  2.4.23  2.4.23-rc5  2.4.23-rc4 
(Following) 2.4.27-rc1  2.4.27-rc2  2.4.27-rc3  2.4.27-rc4  2.4.27-rc5  2.4.27-rc6 

Location
[  2.4.27-pre6
  [  fs
    [  jfs
       o  jfs_dmap.c

Patch

diff -Naur -p -X /home/marcelo/lib/dontdiff linux-2.4.26/fs/jfs/jfs_dmap.c linux-2.4.27-pre6/fs/jfs/jfs_dmap.c
--- linux-2.4.26/fs/jfs/jfs_dmap.c   2004-04-14 13:05:40.000000000 +0000
+++ linux-2.4.27-pre6/fs/jfs/jfs_dmap.c   2004-06-16 17:35:34.000000000 +0000
@@ -1,5 +1,5 @@
 /*
- *   Copyright (C) International Business Machines Corp., 2000-2003
+ *   Copyright (C) International Business Machines Corp., 2000-2004
  *
  *   This program is free software;  you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
@@ -382,7 +382,7 @@ int dbFree(struct inode *ip, s64 blkno, 
    IREAD_LOCK(ipbmap);
 
    /* block to be freed better be within the mapsize. */
-   if (unlikely(blkno + nblocks > bmp->db_mapsize)) {
+   if (unlikely((blkno == 0) || (blkno + nblocks > bmp->db_mapsize))) {
       IREAD_UNLOCK(ipbmap);
       printk(KERN_ERR "blkno = %Lx, nblocks = %Lx\n",
              (unsigned long long) blkno,


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