]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] Plug an unlikely leak
authorBob Peterson <rpeterso@redhat.com>
Mon, 28 Jan 2008 22:35:13 +0000 (16:35 -0600)
committerSteven 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

index 71387372c883f123464656267813d23c257f866f..4390f6f4047d3466c60899d4b1d2526de985d450 100644 (file)
@@ -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++;