Explorar el Código

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 hace 4 años
padre
commit
155c5abe4b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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,
 	},
+	{},
 };