mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "msm: ipa: adding checks if the rt_rule is not freed"
This commit is contained in:
commit
596aec557e
1 changed files with 8 additions and 3 deletions
|
|
@ -64,9 +64,14 @@ static int ipa3_generate_flt_hw_rule(enum ipa_ip_type ip,
|
|||
}
|
||||
|
||||
gen_params.ipt = ip;
|
||||
if (entry->rt_tbl && (!ipa3_check_idr_if_freed(entry->rt_tbl)))
|
||||
gen_params.rt_tbl_idx = entry->rt_tbl->idx;
|
||||
else
|
||||
if (entry->rt_tbl) {
|
||||
if (ipa3_check_idr_if_freed(entry->rt_tbl)) {
|
||||
IPAERR_RL("Routing table already freed\n");
|
||||
return -EPERM;
|
||||
} else {
|
||||
gen_params.rt_tbl_idx = entry->rt_tbl->idx;
|
||||
}
|
||||
} else
|
||||
gen_params.rt_tbl_idx = entry->rule.rt_tbl_idx;
|
||||
|
||||
gen_params.priority = entry->prio;
|
||||
|
|
|
|||
Loading…
Reference in a new issue