| Kernel v2.4.27-pre6 /fs/jfs/jfs_dmap.c |
|---|
 2.4.27-pre6
 fs
 jfs
 jfs_dmap.c
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,
|