Skip to content
Snippets Groups Projects
Commit 8132e17d authored by Jeb Cramer's avatar Jeb Cramer Committed by Jeff Kirsher
Browse files

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: default avatarJeb Cramer <jeb.j.cramer@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 03af8406
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment