net/smc: fixes for converting from "struct smc_cdc_tx_pend **" to "struct smc_wr_tx_p...
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>
Sat, 28 May 2022 06:54:57 +0000 (14:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:11 +0000 (18:36 +0200)
[ Upstream commit e225c9a5a74b12e9ef8516f30a3db2c7eb866ee1 ]

"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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/smc/smc_cdc.c

index 84c8a43..5d180d2 100644 (file)
@@ -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;