X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=security%2Fselinux%2Fselinuxfs.c;h=ee94fa469c29edb0fbfc07d151d91710df86b265;hb=e89d108da909a4a248ab27cddd68eebaed2850f3;hp=e6c7643c3fc08219e07b3fd8894abb3a8df4ff1d;hpb=262a2f33454fcecdc2032ca84d6fecdb08233468;p=linux.git diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index e6c7643c3fc0..ee94fa469c29 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -548,10 +548,6 @@ static ssize_t sel_write_load(struct file *file, const char __user *buf, if (*ppos != 0) goto out; - length = -EFBIG; - if (count > 64 * 1024 * 1024) - goto out; - length = -ENOMEM; data = vmalloc(count); if (!data)