瀏覽代碼

msm: ipa: Updating the last index of qmi handler array with NULL

Update in the qmi handler structures last index to NULL, to avoid
the out of bound access attempt while handling qmi notifications
from IPA.

Change-Id: I51b3e4369fcf4c9c235307cfd7c6415c525da496
Signed-off-by: Raghavendar rao l <[email protected]>
Raghavendar rao l 3 年之前
父節點
當前提交
155c5abe4b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

@@ -1927,6 +1927,7 @@ static struct qmi_msg_handler server_handlers[] = {
 		.decoded_size = sizeof(struct ipa_move_nat_req_msg_v01),
 		.fn = ipa3_handle_move_nat_req,
 	},
+	{},
 
 };
 
@@ -1960,6 +1961,7 @@ static struct qmi_msg_handler client_handlers[] = {
 		.decoded_size = IPA_BW_CHANGE_IND_MSG_V01_MAX_MSG_LEN,
 		.fn = ipa3_q6_clnt_bw_change_ind_cb,
 	},
+	{},
 };