]> git.hungrycats.org Git - linux/commitdiff
[PATCH] isofs buffer management fix
authorAndrew Morton <akpm@osdl.org>
Mon, 13 Sep 2004 07:05:42 +0000 (00:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Sep 2004 07:05:42 +0000 (00:05 -0700)
There's a double-free in the isofs filesystem.

Invalidate this pointer so it doesn't get freed twice.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/isofs/rock.c

index 78899221f2c31c2cca8273f2f271f389bae835df..19d999fd450c2c7892e5ef00045482f889fbf5c1 100644 (file)
@@ -62,7 +62,7 @@
 }                                     
 
 #define MAYBE_CONTINUE(LABEL,DEV) \
-  {if (buffer) kfree(buffer); \
+  {if (buffer) { kfree(buffer); buffer = NULL; } \
   if (cont_extent){ \
     int block, offset, offset1; \
     struct buffer_head * pbh; \