This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
commit 034e8816cd45e598f4408345b070cf8248078d2c
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Fri Nov 26 17:15:42 2021 +0000
libgfs2: Fix leak of bh in read_sb()
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/super.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gfs2/libgfs2/super.c b/gfs2/libgfs2/super.c
index 1bdfe254..c3c59e7e 100644
--- a/gfs2/libgfs2/super.c
+++ b/gfs2/libgfs2/super.c
@@ -68,8 +68,10 @@ int read_sb(struct gfs2_sbd *sdp)
bh = bread(sdp, GFS2_SB_ADDR >> sdp->sd_fsb2bb_shift);
ret = check_sb(bh->b_data);
- if (ret < 0)
+ if (ret < 0) {
+ brelse(bh);
return ret;
+ }
if (ret == 1)
sdp->gfs1 = 1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date