]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: bail from sctp_endpoint_lookup_assoc() if not bound
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 19 Apr 2011 21:29:23 +0000 (21:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 08:51:03 +0000 (01:51 -0700)
commitc2b8298825f34bf98793e4e6a9c1194e8afbda9a
tree45bbca28f552fe2f74202117d564ecd7cbe8ddde
parent1c96abdf98affbe376bf2f69ba8f5178bd3c70ea
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 <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/endpointola.c