Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
[ Upstream commit 89f45c3 ] When dma_alloc_coherent() fails, we should free qdev->lrg_buf to prevent potential memleak. Fixes: 1357bfc ("qla3xxx: Dynamically size the rx buffer queue based on the MTU.") Signed-off-by: Dinghao Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information