Message ID | 20240712011855.2233154-2-yuxuan.luo@canonical.com |
---|---|
State | New |
Headers | show |
Series | [F] gfs2: Fix slab-use-after-free in gfs2_qd_dealloc | expand |
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 15e757f763806..09bb630185952 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -662,6 +662,8 @@ static void gfs2_put_super(struct super_block *sb) error = gfs2_make_fs_ro(sdp); if (error) gfs2_io_error(sdp); + } else { + gfs2_quota_cleanup(sdp); } /* At this point, we're through modifying the disk */