kernel_samsung_a53x/drivers/net/ethernet/qlogic
Dinghao Liu 099d42597c net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues
[ Upstream commit 89f45c30172c80e55c887f32f1af8e184124577b ]

When dma_alloc_coherent() fails, we should free qdev->lrg_buf
to prevent potential memleak.

Fixes: 1357bfcf7106 ("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>
2024-11-18 12:12:07 +01:00
..
netxen net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
qed qed: Fix a potential use-after-free in qed_cxt_tables_alloc 2024-11-18 12:11:49 +01:00
qede Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qlcnic net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qla3xxx.c net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues 2024-11-18 12:12:07 +01:00
qla3xxx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00