commit | 8132e17dfb1683f1ef7ebf6fa8b61c1f48152660 | [log] [tgz] |
---|---|---|
author | Jeb Cramer <jeb.j.cramer@intel.com> | Fri Aug 02 01:25:26 2019 -0700 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Tue Sep 03 16:08:54 2019 -0700 |
tree | cbecb318cb240147d11a6689e03083b03a8d0557 | |
parent | 03af840650bb4a1cfa95ea93493d04b679ab5f5c [diff] |
ice: Fix resource leak in ice_remove_rule_internal() We don't free s_rule if ice_aq_sw_rules() returns a non-zero status. If it returned a zero status, s_rule would be freed right after, so this implies it should be freed within the scope of the function regardless. Signed-off-by: Jeb Cramer <jeb.j.cramer@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>