From: Vlad Yasevich Date: Tue, 19 Apr 2011 21:29:23 +0000 (+0000) Subject: sctp: bail from sctp_endpoint_lookup_assoc() if not bound X-Git-Tag: v3.0-rc1~377^2~280 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb85a6ecc432a4f342004a6ac2a0dad7cba6846;p=pandora-kernel.git sctp: bail from sctp_endpoint_lookup_assoc() if not bound The sctp_endpoint_lookup_assoc() function uses a port hash to lookup the association and then checks to see if any of them are on the current endpoint. However, if the current endpoint is not bound, there can't be any associations on it, thus we can bail early. Signed-off-by: Vlad Yasevich Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- Reading git-diff-tree failed