Message ID | 92d003a2abfabd714a29be89c3c407f5d75b9c06.1646227183.git.alibuda@linux.alibaba.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 0537f0a2151375dcf90c1bbfda6a0aaf57164e89 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | fix unexpected SMC_CLC_DECL_ERR_REGRMB error | expand |
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index 29525d0..f8c9675 100644 --- a/net/smc/smc_core.c +++ b/net/smc/smc_core.c @@ -1161,8 +1161,8 @@ void smc_conn_free(struct smc_connection *conn) cancel_work_sync(&conn->abort_work); } if (!list_empty(&lgr->list)) { - smc_lgr_unregister_conn(conn); smc_buf_unuse(conn, lgr); /* allow buffer reuse */ + smc_lgr_unregister_conn(conn); } if (!lgr->conns_num)