KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Use DECLARE_FLEX_ARRAY() helper in include/net/netns/generic.h #225

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
diff -u -p ./include/net/netns/generic.h /tmp/nothing/include/net/netns/generic.h
--- ./include/net/netns/generic.h
+++ /tmp/nothing/include/net/netns/generic.h
@@ -33,7 +33,6 @@ struct net_generic {
                        struct rcu_head rcu;
                } s;

-               void *ptr[0];
        };
 };