Revert "sctp: Fix race between OOTB responce and route removal"
authorBen Hutchings <ben@decadent.org.uk>
Thu, 8 Oct 2015 22:44:23 +0000 (23:44 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:13 +0000 (03:46 +0100)
This reverts commit 117b8a10fe0c434d9043267efd51f3ba3f3d359a, which
was commit 29c4afc4e98f4dc0ea9df22c631841f9c220b944 upstream.  The bug
it fixes upstream clearly doesn't exist in 3.2.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sctp/output.c

index 6d56eec..c3b8549 100644 (file)
@@ -587,9 +587,7 @@ out:
        return err;
 no_route:
        kfree_skb(nskb);
-
-       if (asoc)
-               IP_INC_STATS(&init_net, IPSTATS_MIB_OUTNOROUTES);
+       IP_INC_STATS(&init_net, IPSTATS_MIB_OUTNOROUTES);
 
        /* FIXME: Returning the 'err' will effect all the associations
         * associated with a socket, although only one of the paths of the