Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
155c5abe4b

+ 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),
 		.decoded_size = sizeof(struct ipa_move_nat_req_msg_v01),
 		.fn = ipa3_handle_move_nat_req,
 		.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,
 		.decoded_size = IPA_BW_CHANGE_IND_MSG_V01_MAX_MSG_LEN,
 		.fn = ipa3_q6_clnt_bw_change_ind_cb,
 		.fn = ipa3_q6_clnt_bw_change_ind_cb,
 	},
 	},
+	{},
 };
 };