]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/sysctl_binary.c
IB/rdmavt, hfi1, qib: Modify check_ah() to account for extended LIDs
[mirror_ubuntu-bionic-kernel.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()) {