--- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1448,6 +1448,7 @@ int gfs2_quota_init(struct gfs2_sbd *sdp) fail: gfs2_quota_cleanup(sdp); + sdp = NULL; return error; }