mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
[ Upstream commit89f45c3017] When dma_alloc_coherent() fails, we should free qdev->lrg_buf to prevent potential memleak. Fixes:1357bfcf71("qla3xxx: Dynamically size the rx buffer queue based on the MTU.") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Link: https://lore.kernel.org/r/20231227070227.10527-1-dinghao.liu@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9b05042922
commit
0af75845ff
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue