diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index ddb379abd919de21f9d55ad1f7e9fea1fa468273..316f49cbc032eee6c58760b8ed6abf4e3d349e13 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -2312,6 +2312,10 @@ static int vfs_load_quota_inode(struct inode *inode, int type, int format_id, if (!fmt) return -ESRCH; + if (is_bad_inode(inode)) { + error = -EUCLEAN; + goto out_fmt; + } if (!S_ISREG(inode->i_mode)) { error = -EACCES; goto out_fmt;