Merge "msm: ipa: Fix invalid source pipe index"
This commit is contained in:
commit
8bb4bde4b2
2 changed files with 10 additions and 0 deletions
|
@ -807,6 +807,11 @@ int ipa3_qmi_filter_notify_send(
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (req->source_pipe_index == -1) {
|
||||
IPAWANERR("Source pipe index invalid\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
mutex_lock(&ipa3_qmi_lock);
|
||||
if (ipa3_qmi_ctx != NULL) {
|
||||
/* cache the qmi_filter_request */
|
||||
|
|
|
@ -702,6 +702,11 @@ static int ipa3_wwan_add_ul_flt_rule_to_ipa(void)
|
|||
/* send ipa_fltr_installed_notif_req_msg_v01 to Q6*/
|
||||
req->source_pipe_index =
|
||||
ipa3_get_ep_mapping(IPA_CLIENT_APPS_WAN_PROD);
|
||||
if (req->source_pipe_index == IPA_EP_NOT_ALLOCATED) {
|
||||
IPAWANERR("ep mapping failed\n");
|
||||
retval = -EFAULT;
|
||||
}
|
||||
|
||||
req->install_status = QMI_RESULT_SUCCESS_V01;
|
||||
req->rule_id_valid = 1;
|
||||
req->rule_id_len = rmnet_ipa3_ctx->num_q6_rules;
|
||||
|
|
Loading…
Add table
Reference in a new issue