]> Pileus Git - ~andy/linux/blobdiff - fs/gfs2/lops.c
Merge branch 'core/stacktrace' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
[~andy/linux] / 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++;