From: Guangguan Wang Date: Sat, 28 May 2022 06:54:57 +0000 (+0800) Subject: net/smc: fixes for converting from "struct smc_cdc_tx_pend **" to "struct smc_wr_tx_p... X-Git-Tag: baikal/aarch64/sdk6.1~3836^2~34 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=6ae7efe6bdff2c616481c5e723f43c33ad162a09;p=kernel.git 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: 250b5b9e3a9d ("net/smc: put slot when connection is killed") Signed-off-by: Guangguan Wang Signed-off-by: David S. Miller --- diff --git a/net/smc/smc_cdc.c b/net/smc/smc_cdc.c index 5c731f27996ef..53f63bfbaf5f9 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;