summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_cdc.c
diff options
context:
space:
mode:
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>2022-05-28 08:54:57 +0200
committerDavid S. Miller <davem@davemloft.net>2022-05-28 13:36:26 +0200
commite225c9a5a74b12e9ef8516f30a3db2c7eb866ee1 (patch)
tree20cd76a9e54eb0ed932577fd4c8b3338670f10c3 /net/smc/smc_cdc.c
parentMerge branch 'net-ipa-fix-page-free-in-two-spots' (diff)
downloadlinux-e225c9a5a74b12e9ef8516f30a3db2c7eb866ee1.tar.xz
linux-e225c9a5a74b12e9ef8516f30a3db2c7eb866ee1.zip
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: 2bced6aefa3d ("net/smc: put slot when connection is killed") Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_cdc.c')
-rw-r--r--net/smc/smc_cdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_cdc.c b/net/smc/smc_cdc.c
index 5c731f27996e..53f63bfbaf5f 100644
--- a/net/smc/smc_cdc.c
+++ b/net/smc/smc_cdc.c
@@ -82,7 +82,7 @@ int smc_cdc_get_free_slot(struct smc_connection *conn,
/* abnormal termination */
if (!rc)
smc_wr_tx_put_slot(link,
- (struct smc_wr_tx_pend_priv *)pend);
+ (struct smc_wr_tx_pend_priv *)(*pend));
rc = -EPIPE;
}
return rc;