diff options
| author | Zhengchao Shao <[email protected]> | 2023-04-18 06:54:50 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-04-20 13:39:15 +0000 |
| commit | e315e7b83a22043bffee450437d7089ef373cbf6 (patch) | |
| tree | 8d770201027a68182f04c0bdfa81e346434e0651 /fs/fs-writeback.c | |
| parent | Merge branch 'another-crack-at-a-handshake-upcall-mechanism' (diff) | |
| download | kernel-e315e7b83a22043bffee450437d7089ef373cbf6.tar.gz kernel-e315e7b83a22043bffee450437d7089ef373cbf6.zip | |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions
