]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Cleanup fltr list in case of allocation issues
authorRobert Malz <robertx.malz@intel.com>
Fri, 26 Feb 2021 21:19:32 +0000 (13:19 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 29 Mar 2021 17:37:49 +0000 (10:37 -0700)
commit26f136a8d11483e8febfe376487d19a85807226e
tree70efd5502f872ba6c247b3f54e94e9eeac6b798f
parent72f4ef4c2f2ad330684a12c4f46f6d6f54113968
ice: Cleanup fltr list in case of allocation issues

When ice_remove_vsi_lkup_fltr is called, by calling
ice_add_to_vsi_fltr_list local copy of vsi filter list
is created. If any issues during creation of vsi filter
list occurs it up for the caller to free already
allocated memory. This patch ensures proper memory
deallocation in these cases.

Fixes: edc050d85bc7 ("ice: Refactor switch rule management structures and functions")
Signed-off-by: Robert Malz <robertx.malz@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c