Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/smc: postpone sk_refcnt increment in connect()
Same trigger condition as commit 8643474. When setsockopt runs in parallel to a connect(), and switch the socket into fallback mode. Then the sk_refcnt is incremented in smc_connect(), but its state stay in SMC_INIT (NOT SMC_ACTIVE). This cause the corresponding sk_refcnt decrement in __smc_release() will not be performed. Fixes: 8643474 ("net/smc: add fallback check to connect()") Signed-off-by: liuyacan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information