Commit 58a90ba8 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] Memleak in fs/ufs/util.c

Patch from Oleg Drokin <green@namesys.com>

    There is trivial memleak on error exit path in
    fs/ufs/util.c::_ubh_bread_()
parent 6bd4c9f3
...@@ -48,6 +48,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi, ...@@ -48,6 +48,7 @@ struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,
failed: failed:
for (j = 0; j < i; j++) for (j = 0; j < i; j++)
brelse (ubh->bh[j]); brelse (ubh->bh[j]);
kfree(ubh);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment