diff --git a/drivers/platform/msm/ipa/ipa_v2/ipa_rt.c b/drivers/platform/msm/ipa/ipa_v2/ipa_rt.c index 50bb9bcf9674..e4f57d8580ca 100644 --- a/drivers/platform/msm/ipa/ipa_v2/ipa_rt.c +++ b/drivers/platform/msm/ipa/ipa_v2/ipa_rt.c @@ -54,7 +54,7 @@ int __ipa_generate_rt_hw_rule_v2(enum ipa_ip_type ip, struct ipa_hdr_entry *hdr_entry; if (buf == NULL) { - memset(tmp, 0, (IPA_RT_FLT_HW_RULE_BUF_SIZE/4)); + memset(tmp, 0, sizeof(tmp)); buf = (u8 *)tmp; }