Skip to content

Commit

Permalink
net/smc: fixes for converting from "struct smc_cdc_tx_pend **" to "st…
Browse files Browse the repository at this point in the history
…ruct smc_wr_tx_pend_priv *"

[ Upstream commit e225c9a ]

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

Fixes: 2bced6a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Guangguan Wang authored and gregkh committed Jun 14, 2022
1 parent b97550e commit 630e0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/smc/smc_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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;
Expand Down

0 comments on commit 630e0a1

Please sign in to comment.