]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_quotaops.c
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / fs / xfs / xfs_quotaops.c
index cd6c7210a37366a9e144f85f5e042cea4aa20968..c7de17deeae64c107544387efd39bdbf4d1d776f 100644 (file)
@@ -201,6 +201,9 @@ xfs_fs_rm_xquota(
        if (XFS_IS_QUOTA_ON(mp))
                return -EINVAL;
 
+       if (uflags & ~(FS_USER_QUOTA | FS_GROUP_QUOTA | FS_PROJ_QUOTA))
+               return -EINVAL;
+
        if (uflags & FS_USER_QUOTA)
                flags |= XFS_DQ_USER;
        if (uflags & FS_GROUP_QUOTA)