diff options
author | 2020-10-30 07:14:30 +0000 | |
---|---|---|
committer | 2021-02-18 10:03:54 -0800 | |
commit | 58cab46c622d6324e47bd1c533693c94498e4172 (patch) | |
tree | 120f2304f47d8f2057027f275a30244be74ae613 /drivers/usb/cdns3/cdns3-imx.c | |
parent | i40e: Fix flow for IPv6 next header (extension header) (diff) | |
download | linux-dev-58cab46c622d6324e47bd1c533693c94498e4172.tar.xz linux-dev-58cab46c622d6324e47bd1c533693c94498e4172.zip |
i40e: Fix memory leak in i40e_probe
Struct i40e_veb is allocated in function i40e_setup_pf_switch, and
stored to an array field veb inside struct i40e_pf. However when
i40e_setup_misc_vector fails, this memory leaks.
Fix this by calling exit and teardown functions.
Signed-off-by: Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions