OpenCloudOS-Kernel/drivers/net/ethernet/wangxun/libwx
Zhengchao Shao e315e7b83a net: libwx: fix memory leak in wx_setup_rx_resources
When wx_alloc_page_pool() failed in wx_setup_rx_resources(), it doesn't
release DMA buffer. Add dma_free_coherent() in the error path to release
the DMA buffer.

Fixes: 850b971110 ("net: libwx: Allocate Rx and Tx resources")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230418065450.2268522-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-04-20 15:39:15 +02:00
..
Makefile net: wangxun: Add the basic ethtool interfaces 2023-02-15 21:32:01 -08:00
wx_ethtool.c net: wangxun: Add the basic ethtool interfaces 2023-02-15 21:32:01 -08:00
wx_ethtool.h net: wangxun: Add the basic ethtool interfaces 2023-02-15 21:32:01 -08:00
wx_hw.c net: wangxun: Implement the ndo change mtu interface 2023-03-17 07:52:41 +00:00
wx_hw.h net: wangxun: Implement the ndo change mtu interface 2023-03-17 07:52:41 +00:00
wx_lib.c net: libwx: fix memory leak in wx_setup_rx_resources 2023-04-20 15:39:15 +02:00
wx_lib.h net: libwx: Add tx path to process packets 2023-02-06 09:22:48 +00:00
wx_type.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00