]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 May 2022 11:36:26 +0000 (12:36 +0100)
"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 <guangguan.wang@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c

index 5c731f27996efd6357178b720f62ff50d4c8444b..53f63bfbaf5f92915bb7af4e02fe8fe2e96b89f2 100644 (file)
@@ -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;