aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorEric Joyner <[email protected]>2020-05-08 00:41:07 +0000
committerJeff Kirsher <[email protected]>2020-05-22 05:10:04 +0000
commit857a4f0e9f4956fffc0cedcaa2ba187a2e987153 (patch)
tree8687664d21bfdf0f0402fd2f7fe132053e9e1892 /drivers/net/ethernet/intel/ice/ice_lib.c
parentice: cleanup vf_id signedness (diff)
downloadkernel-857a4f0e9f4956fffc0cedcaa2ba187a2e987153.tar.gz
kernel-857a4f0e9f4956fffc0cedcaa2ba187a2e987153.zip
ice: Fix resource leak on early exit from function
Memory allocated in the ice_add_prof_id_vsig() function wasn't being properly freed if an error occurred inside the for-loop in the function. In particular, 'p' wasn't being freed if an error occurred before it was added to the resource list at the end of the for-loop. Signed-off-by: Eric Joyner <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions