From bdbd018656372ea7a2cc78ead55a87dd039e5a93 Mon Sep 17 00:00:00 2001 From: Bojun Pan Date: Thu, 24 Oct 2019 18:03:55 -0700 Subject: [PATCH] msm: ipa : Fix KW array index issue on dbg_buff KW raise the issue of "array 'dbg_buff' of size 4096 may use index value(s) 4096." The fix is to increase the dbg_buff size to avoid it. Change-Id: Ibb02e7fa73d9c0fb8924c90c66052255acc8275f Signed-off-by: Bojun Pan --- drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c b/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c index 6fc1eba69641..8a8bc8658233 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c @@ -98,7 +98,7 @@ const char *ipa3_hdr_proc_type_name[] = { }; static struct dentry *dent; -static char dbg_buff[IPA_MAX_MSG_LEN]; +static char dbg_buff[IPA_MAX_MSG_LEN + 1]; static char *active_clients_buf; static s8 ep_reg_idx;