]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: ti: am65-cpsw-nuss: fix error handling for "RX dma add buf failed"
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 26 Apr 2024 08:02:26 +0000 (10:02 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 15 May 2024 16:46:47 +0000 (10:46 -0600)
The RX DMA channel has been requested at this point already, so it must
be freed.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
drivers/net/ti/am65-cpsw-nuss.c

index e0968f6e6fcca516d18d8ef1b6bf665496f5f0e2..c70b42f6bcc249ff9124c2952a38311f32ad19f9 100644 (file)
@@ -361,7 +361,7 @@ static int am65_cpsw_start(struct udevice *dev)
                                          UDMA_RX_BUF_SIZE);
                if (ret) {
                        dev_err(dev, "RX dma add buf failed %d\n", ret);
-                       goto err_free_tx;
+                       goto err_free_rx;
                }
        }