]> Pileus Git - ~andy/linux/blobdiff - net/sctp/output.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[~andy/linux] / net / sctp / output.c
index be50aa234dcdea30a5c7986eaeaae3570f64a6e3..4e90188bf4895b95f89cdcd9ca0f024c31bbe08a 100644 (file)
@@ -616,7 +616,7 @@ out:
        return err;
 no_route:
        kfree_skb(nskb);
-       IP_INC_STATS_BH(&init_net, IPSTATS_MIB_OUTNOROUTES);
+       IP_INC_STATS_BH(sock_net(asoc->base.sk), IPSTATS_MIB_OUTNOROUTES);
 
        /* FIXME: Returning the 'err' will effect all the associations
         * associated with a socket, although only one of the paths of the