bpf: fix arraymap NULL deref and missing overflow and zero size checks
[deliverable/linux.git] / net / netlink / af_netlink.c
index d479b32d5826aca27c66b4b59734059958fb67e5..e1aad6eeac147c04231e0762e91675414c02e4b5 100644 (file)
@@ -142,8 +142,7 @@ int netlink_add_tap(struct netlink_tap *nt)
        list_add_rcu(&nt->list, &netlink_tap_all);
        spin_unlock(&netlink_tap_lock);
 
-       if (nt->module)
-               __module_get(nt->module);
+       __module_get(nt->module);
 
        return 0;
 }
This page took 0.024637 seconds and 5 git commands to generate.