projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048786f
)
[GFS2] Plug an unlikely leak
author
Bob Peterson
<rpeterso@redhat.com>
Mon, 28 Jan 2008 22:35:13 +0000
(16:35 -0600)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Mon, 31 Mar 2008 09:40:05 +0000
(10:40 +0100)
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/lops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/lops.c
b/fs/gfs2/lops.c
index 71387372c883f123464656267813d23c257f866f..4390f6f4047d3466c60899d4b1d2526de985d450 100644
(file)
--- a/
fs/gfs2/lops.c
+++ b/
fs/gfs2/lops.c
@@
-404,8
+404,10
@@
static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start,
blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset));
error = gfs2_revoke_add(sdp, blkno, start);
- if (error < 0)
+ if (error < 0) {
+ brelse(bh);
return error;
+ }
else if (error)
sdp->sd_found_revokes++;