[PATCH 11/20] Re: [2.6-BK-URL] NTFS 2.1.17 release
From: Anton Altaparmakov
Date: Mon Aug 23 2004 - 06:00:15 EST
This is patch 11/20 in the series. It contains the following ChangeSet:
<aia21@xxxxxxxxxx> (04/07/22 1.1814)
NTFS: Move a NULL check to before the first use of the pointer.
Signed-off-by: Anton Altaparmakov <aia21@xxxxxxxxxx>
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/
===================================================================
diff -Nru a/fs/ntfs/bitmap.c b/fs/ntfs/bitmap.c
--- a/fs/ntfs/bitmap.c 2004-08-18 20:50:20 +01:00
+++ b/fs/ntfs/bitmap.c 2004-08-18 20:50:20 +01:00
@@ -54,10 +54,10 @@
int pos, len;
u8 bit;
+ BUG_ON(!vi);
ntfs_debug("Entering for i_ino 0x%lx, start_bit 0x%llx, count 0x%llx, "
"value %u.", vi->i_ino, (unsigned long long)start_bit,
(unsigned long long)cnt, (unsigned int)value);
- BUG_ON(!vi);
BUG_ON(start_bit < 0);
BUG_ON(cnt < 0);
BUG_ON(value > 1);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/