Commit e225c9a5 authored by Guangguan Wang's avatar Guangguan Wang Committed by David S. Miller

net/smc: fixes for converting from "struct smc_cdc_tx_pend **" to "struct smc_wr_tx_pend_priv *"

"struct smc_cdc_tx_pend **" can not directly convert
to "struct smc_wr_tx_pend_priv *".

Fixes: 2bced6ae ("net/smc: put slot when connection is killed")
Signed-off-by: default avatarGuangguan Wang <guangguan.wang@linux.alibaba.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9bae058a
...@@ -82,7 +82,7 @@ int smc_cdc_get_free_slot(struct smc_connection *conn, ...@@ -82,7 +82,7 @@ int smc_cdc_get_free_slot(struct smc_connection *conn,
/* abnormal termination */ /* abnormal termination */
if (!rc) if (!rc)
smc_wr_tx_put_slot(link, smc_wr_tx_put_slot(link,
(struct smc_wr_tx_pend_priv *)pend); (struct smc_wr_tx_pend_priv *)(*pend));
rc = -EPIPE; rc = -EPIPE;
} }
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment