From: Bob Peterson Date: Mon, 28 Jan 2008 22:35:13 +0000 (-0600) Subject: [GFS2] Plug an unlikely leak X-Git-Tag: v2.6.26-rc1~1144^2~40 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ad62e87cd38817361e165cf4ad496ab76e19e81;p=linux-2.6 [GFS2] Plug an unlikely leak Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 71387372c8..4390f6f404 100644 --- 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++;