aboutsummaryrefslogtreecommitdiffstats
path: root/net/nsh/nsh.c
diff options
context:
space:
mode:
authorUrsula Braun <[email protected]>2018-07-05 14:15:30 +0000
committerDavid S. Miller <[email protected]>2018-07-07 11:25:13 +0000
commite1bbdd57047454dad068dc36612dd60a57f4c58f (patch)
tree76e741e90f29cedf93a749cb68d9695704482958 /net/nsh/nsh.c
parentnet: bridge: fix br_vlan_get_{pvid,info} return values (diff)
downloadkernel-e1bbdd57047454dad068dc36612dd60a57f4c58f.tar.gz
kernel-e1bbdd57047454dad068dc36612dd60a57f4c58f.zip
net/smc: reduce sock_put() for fallback sockets
smc_release() calls a sock_put() for smc fallback sockets to cover the passive closing sock_hold() in __smc_connect() and smc_tcp_listen_work(). This does not make sense for sockets in state SMC_LISTEN and SMC_INIT. An SMC socket stays in state SMC_INIT if connect fails. The sock_put in smc_connect_abort() does not cover all failures. Move it into smc_connect_decline_fallback(). Fixes: ee9dfbef02d18 ("net/smc: handle sockopts forcing fallback") Reported-by: [email protected] Reported-by: [email protected] Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions