]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ppp_generic.c
[PATCH] x86_64: Undo the earlier changes to remove unrolled copy/memset functions
[karo-tx-linux.git] / drivers / net / ppp_generic.c
index 50430f79f8cf8190541e47495d625cae0cd7a765..1c6d328165bb066bd132b44c1fe4d4cbbbc0a096 100644 (file)
@@ -524,9 +524,6 @@ static int get_filter(void __user *arg, struct sock_filter **p)
        if (copy_from_user(&uprog, arg, sizeof(uprog)))
                return -EFAULT;
 
-       if (uprog.len > BPF_MAXINSNS)
-               return -EINVAL;
-
        if (!uprog.len) {
                *p = NULL;
                return 0;