Message ID | 1536710238-16858-2-git-send-email-wshilong1991@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3,1/3] ext4: fix setattr project check upon fssetxattr ioctl | expand |
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index f81102bd3203..781dd699bd7b 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c @@ -359,7 +359,9 @@ static int ext4_ioctl_setproject(struct file *filp, __u32 projid) brelse(iloc.bh); } - dquot_initialize(inode); + err = dquot_initialize(inode); + if (err) + return err; handle = ext4_journal_start(inode, EXT4_HT_QUOTA, EXT4_QUOTA_INIT_BLOCKS(sb) +