]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/sysctl_binary.c
Merge tag 'devprop-fix-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / kernel / sysctl_binary.c
index 939a158eab11d2b2cca4f8412f0423449f964efd..02e1859f2ca82e086f0ac73b08c4df07766edede 100644 (file)
@@ -1346,7 +1346,7 @@ static void deprecated_sysctl_warning(const int *name, int nlen)
         * CTL_KERN/KERN_VERSION is used by older glibc and cannot
         * ever go away.
         */
-       if (name[0] == CTL_KERN && name[1] == KERN_VERSION)
+       if (nlen >= 2 && name[0] == CTL_KERN && name[1] == KERN_VERSION)
                return;
 
        if (printk_ratelimit()) {