diff options
author | Eric Joyner <eric.joyner@intel.com> | 2020-05-07 17:41:07 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-05-21 22:10:04 -0700 |
commit | 857a4f0e9f4956fffc0cedcaa2ba187a2e987153 (patch) | |
tree | 8687664d21bfdf0f0402fd2f7fe132053e9e1892 /drivers/net/ethernet/intel/ice/ice_flow.c | |
parent | 53bb66983f34d4ff0af179fe228e2c55e1e45921 (diff) |
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 <eric.joyner@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_flow.c')
0 files changed, 0 insertions, 0 deletions