Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5839e234 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm-ipa: fix use-after-free of rt_tbl"

parents 8e7a4841 232eae5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -982,7 +982,7 @@ static int __ipa_del_flt_rule(u32 rule_hdl)

	list_del(&entry->link);
	entry->tbl->rule_cnt--;
	if (entry->rt_tbl)
	if (entry->rt_tbl && !ipa3_check_idr_if_freed(entry->rt_tbl))
		entry->rt_tbl->ref_cnt--;
	IPADBG("del flt rule rule_cnt=%d rule_id=%d\n",
		entry->tbl->rule_cnt, entry->rule_id);