From: Matthias Schiffer Date: Fri, 26 Apr 2024 08:02:26 +0000 (+0200) Subject: net: ti: am65-cpsw-nuss: fix error handling for "RX dma add buf failed" X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=b079bd9e294b64c86dd2b4520de027bc9042a8dc;p=u-boot.git net: ti: am65-cpsw-nuss: fix error handling for "RX dma add buf failed" The RX DMA channel has been requested at this point already, so it must be freed. Signed-off-by: Matthias Schiffer --- diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index e0968f6e6f..c70b42f6bc 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -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; } }