]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i40e: prevent memory leak in i40e_setup_macvlans
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Wed, 25 Sep 2019 15:48:30 +0000 (10:48 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit36314358051a3001ff4fef150f045081c33fe2ef
tree9e3a483a57b235ce17a9cafbdfedecf2b2416f89
parent0717a203f283c1d65f4ebb43f50f29dfd2f5035c
i40e: prevent memory leak in i40e_setup_macvlans

BugLink: https://bugs.launchpad.net/bugs/1862429
[ Upstream commit 27d461333459d282ffa4a2bdb6b215a59d493a8f ]

In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory
for ch should be released.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_main.c