summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2023-04-18 14:54:50 +0800
committerPaolo Abeni <pabeni@redhat.com>2023-04-20 15:39:15 +0200
commite315e7b83a22043bffee450437d7089ef373cbf6 (patch)
tree8d770201027a68182f04c0bdfa81e346434e0651 /include/linux/mlx5/driver.h
parenta5962e0a8b7b0da2350b4baeefaf7dfa3377bc89 (diff)
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: 850b971110b2 ("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>
Diffstat (limited to 'include/linux/mlx5/driver.h')
0 files changed, 0 insertions, 0 deletions