Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8424a9

Browse files
Yacan LiuPaolo Abeni
authored andcommitted
net/smc: Remove redundant refcount increase
For passive connections, the refcount increment has been done in smc_clcsock_accept()-->smc_sock_alloc(). Fixes: 3b2dec2 ("net/smc: restructure client and server code in af_smc") Signed-off-by: Yacan Liu <[email protected]> Reviewed-by: Tony Lu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 0b4f688 commit a8424a9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/smc/af_smc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,6 @@ static void smc_listen_out_connected(struct smc_sock *new_smc)
18551855
{
18561856
struct sock *newsmcsk = &new_smc->sk;
18571857

1858-
sk_refcnt_debug_inc(newsmcsk);
18591858
if (newsmcsk->sk_state == SMC_INIT)
18601859
newsmcsk->sk_state = SMC_ACTIVE;
18611860

0 commit comments

Comments
 (0)