
void icmp_out_count(struct net *net, unsigned char type)
{
+    if (!net) return;
     ICMPMSGOUT_INC_STATS(net, type);
     ICMP_INC_STATS(net, ICMP_MIB_OUTMSGS);
}
