ipv4/igmp: Annotate struct ip_sf_socklist with __counted_by
[sfrench/cifs-2.6.git] / include / linux / igmp.h
index ebf4349a53af7888104e8c5fe0d7af0e5604ae69..5171231f70a8b35e5633dc2185f57f7d6ae0ccd1 100644 (file)
@@ -39,7 +39,7 @@ struct ip_sf_socklist {
        unsigned int            sl_max;
        unsigned int            sl_count;
        struct rcu_head         rcu;
-       __be32                  sl_addr[];
+       __be32                  sl_addr[] __counted_by(sl_max);
 };
 
 #define IP_SFBLOCK     10      /* allocate this many at once */