]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/route.c
[NET]: should explicitely initialize atomic_t field in struct dst_ops
[linux-2.6-omap-h63xx.git] / net / ipv4 / route.c
index 896c768e41a2d90baef4b4a3783be0164678ff9e..163086b2f0584cc9a0d06e4af87144d31ceb562d 100644 (file)
@@ -169,6 +169,7 @@ static struct dst_ops ipv4_dst_ops = {
        .update_pmtu =          ip_rt_update_pmtu,
        .local_out =            ip_local_out,
        .entry_size =           sizeof(struct rtable),
+       .entries =              ATOMIC_INIT(0),
 };
 
 #define ECN_OR_COST(class)     TC_PRIO_##class
@@ -2498,6 +2499,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
        .check                  =       ipv4_dst_check,
        .update_pmtu            =       ipv4_rt_blackhole_update_pmtu,
        .entry_size             =       sizeof(struct rtable),
+       .entries                =       ATOMIC_INIT(0),
 };