Merge tag 'gpio-fixes-for-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / fs / nfs / callback_xdr.c
index f90de80..8dcb08e 100644 (file)
@@ -271,10 +271,6 @@ __be32 decode_devicenotify_args(struct svc_rqst *rqstp,
        n = ntohl(*p++);
        if (n == 0)
                goto out;
-       if (n > ULONG_MAX / sizeof(*args->devs)) {
-               status = htonl(NFS4ERR_BADXDR);
-               goto out;
-       }
 
        args->devs = kmalloc_array(n, sizeof(*args->devs), GFP_KERNEL);
        if (!args->devs) {