|
@@ -3,7 +3,7 @@
|
|
|
/*
|
|
|
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
- * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*/
|
|
|
#include <linux/ip.h>
|
|
|
#include <linux/ipv6.h>
|
|
@@ -1457,8 +1457,6 @@ int ipa_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
|
|
|
goto fail_gen;
|
|
|
}
|
|
|
|
|
|
- *clnt_hdl = 0;
|
|
|
-
|
|
|
if (sys_in->client >= IPA_CLIENT_MAX || sys_in->desc_fifo_sz == 0) {
|
|
|
IPAERR("bad parm client:%d fifo_sz:%d\n",
|
|
|
sys_in->client, sys_in->desc_fifo_sz);
|
|
@@ -1476,6 +1474,7 @@ int ipa_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
|
|
|
goto fail_gen;
|
|
|
}
|
|
|
|
|
|
+ *clnt_hdl = 0;
|
|
|
wan_coal_ep_id = ipa_get_ep_mapping(IPA_CLIENT_APPS_WAN_COAL_CONS);
|
|
|
lan_coal_ep_id = ipa_get_ep_mapping(IPA_CLIENT_APPS_LAN_COAL_CONS);
|
|
|
|
|
@@ -1934,11 +1933,11 @@ fail_wq3:
|
|
|
fail_wq2:
|
|
|
destroy_workqueue(ep->sys->wq);
|
|
|
fail_wq:
|
|
|
- *clnt_hdl = -1;
|
|
|
kfree(ep->sys);
|
|
|
memset(&ipa3_ctx->ep[ipa_ep_idx], 0, sizeof(struct ipa3_ep_context));
|
|
|
fail_and_disable_clocks:
|
|
|
IPA_ACTIVE_CLIENTS_DEC_EP(sys_in->client);
|
|
|
+ *clnt_hdl = -1;
|
|
|
fail_gen:
|
|
|
IPA_STATS_INC_CNT(ipa3_ctx->stats.pipe_setup_fail_cnt);
|
|
|
return result;
|