ipacm: Declare ipa_flt_rule_add var as static to fix stack size issue
In LOW RAM target ipacm is crashing due to stack
size limitation. Declare ipa_flt_rule_add structure
var as static to fix stack size issue.
Change-Id: I1d70d6e9c2b5249b5e2b9956dbc49b170c43d698
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index f70c58d..9bcbac4 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -3335,7 +3335,7 @@
/* install UL filter rule from Q6 */
int IPACM_Lan::handle_uplink_filter_rule(ipacm_ext_prop *prop, ipa_ip_type iptype, uint8_t xlat_mux_id)
{
- ipa_flt_rule_add flt_rule_entry;
+ static ipa_flt_rule_add flt_rule_entry;
int len = 0, cnt, ret = IPACM_SUCCESS;
ipa_ioc_add_flt_rule *pFilteringTable;
ipa_fltr_installed_notif_req_msg_v01 flt_index;