diff options
author | wangweidong <wangweidong1@huawei.com> | 2013-12-12 09:36:42 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-16 12:48:35 -0500 |
commit | d3fbccf2b01f8262faa1479712be6a55c626bdef (patch) | |
tree | 4f46ab8e4e49db33fcb9a95a7381c2aa4f37a8f2 /lib | |
parent | 776a74ce07a6e325fcfc04e272389947b1281159 (diff) | |
download | linux-stable-d3fbccf2b01f8262faa1479712be6a55c626bdef.tar.gz linux-stable-d3fbccf2b01f8262faa1479712be6a55c626bdef.tar.bz2 linux-stable-d3fbccf2b01f8262faa1479712be6a55c626bdef.zip |
tipc: change lock_sock order in connect()
Instead of reaquiring the socket lock and taking the normal exit
path when a connection times out, we bail out early with a
return -ETIMEDOUT.
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions