Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9956fae authored by Tao Ma's avatar Tao Ma Committed by Joel Becker
Browse files

ocfs2/quota: Release lock for error in ocfs2_quota_write.



ocfs2_quota_write needs to release the lock if it fails to
read quota block. So use "goto out" instead of "return err".

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 0584974a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ ssize_t ocfs2_quota_write(struct super_block *sb, int type,
	}
	if (err) {
		mlog_errno(err);
		return err;
		goto out;
	}
	lock_buffer(bh);
	if (new)