Commit 3ad62e87 authored by Bob Peterson's avatar Bob Peterson Committed by Steven Whitehouse

[GFS2] Plug an unlikely leak

Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 048786f1
...@@ -404,8 +404,10 @@ static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, ...@@ -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)); blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset));
error = gfs2_revoke_add(sdp, blkno, start); error = gfs2_revoke_add(sdp, blkno, start);
if (error < 0) if (error < 0) {
brelse(bh);
return error; return error;
}
else if (error) else if (error)
sdp->sd_found_revokes++; sdp->sd_found_revokes++;
......
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