Repository navigation
Commit d3fbccf
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>1 parent 776a74c commit d3fbccf
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | | - | |
1511 | 1510 | | |
1512 | 1511 | | |
1513 | 1512 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
| 1513 | + | |
1517 | 1514 | | |
| 1515 | + | |
1518 | 1516 | | |
1519 | 1517 | | |
1520 | 1518 | | |
| |||
0 commit comments