From: Daniel Borkmann Date: Fri, 14 Jun 2013 16:24:07 +0000 (+0200) Subject: net: sctp: sctp_association_init: put refs in reverse order X-Git-Tag: v3.11-rc1~16^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e0c9e7911465b29daf85f7de97949004bf7b31c;p=pandora-kernel.git net: sctp: sctp_association_init: put refs in reverse order In case we need to bail out for whatever reason during assoc init, we call sctp_endpoint_put() and then sock_put(), however, we've hold both refs in reverse, non-symmetric order, so first sctp_endpoint_hold() and then sock_hold(). Reverse this, so that in an error case we have sock_put() and then sctp_endpoint_put(). Actually shouldn't matter too much, since both cleanup paths do the right thing, but that way, it is more consistent with the rest of the code. Signed-off-by: Daniel Borkmann Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- Reading git-diff-tree failed