diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 804ce1e5a1e7ed0436051443d684e1b4a1204915..98b60657e1dd11420e13ae9424f65b591b0c16fa 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5712,9 +5712,9 @@ static int ext4_quota_enable(struct super_block *sb, int type, int format_id, qf_inode->i_flags |= S_NOQUOTA; lockdep_set_quota_inode(qf_inode, I_DATA_SEM_QUOTA); err = dquot_enable(qf_inode, type, format_id, flags); - iput(qf_inode); if (err) lockdep_set_quota_inode(qf_inode, I_DATA_SEM_NORMAL); + iput(qf_inode); return err; }