mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
[ Upstream commit01de112332] If vp alloc failed in qlcnic_sriov_init(), all previously allocated vp needs to be freed. Fixes:f197a7aa62("qlcnic: VF-PF communication channel implementation") Signed-off-by: Yuan Can <yuancan@huawei.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
446757787b
commit
dcae92a249
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue