Skip to content

Commit

Permalink
net/smc: Clean up local struct sock variables
Browse files Browse the repository at this point in the history
There remains some variables to replace with local struct sock. So clean
them up all.

Fixes: 3163c50 ("net/smc: use local struct sock variables consistently")
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tony Lu authored and David S. Miller committed Nov 23, 2021
1 parent 1c74312 commit 45c3ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/smc/smc_close.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ static void smc_close_passive_work(struct work_struct *work)
if (rxflags->peer_conn_abort) {
/* peer has not received all data */
smc_close_passive_abort_received(smc);
release_sock(&smc->sk);
release_sock(sk);
cancel_delayed_work_sync(&conn->tx_work);
lock_sock(&smc->sk);
lock_sock(sk);
goto wakeup;
}

Expand Down

0 comments on commit 45c3ff7

Please sign in to comment.