From 24e697ff3e3063098407ad56dc4e74de57db0ee6 Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Fri, 22 Apr 2016 10:49:45 +0530 Subject: [PATCH] qcacld-3.0: Update htc_endpoint only for htt tx endpoint Update htc_endpoint only for htt tx endpoint to avoid double freeing of Tx Queue packets as it will be freed in htt_htc_misc_pkt_pool_free. Rename htc_endpoint to htc_htt_tx_endpoint to reflect it's appropriate use. Change-Id: I736ba08505acc829eb15be30538553dd945695f6 CRs-Fixed: 1006498 --- core/dp/htt/htt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dp/htt/htt.c b/core/dp/htt/htt.c index 58860948dd5e..1672a39c2ea5 100644 --- a/core/dp/htt/htt.c +++ b/core/dp/htt/htt.c @@ -434,9 +434,10 @@ int htt_update_endpoint(struct htt_pdev_t *pdev, QDF_BUG(service_id == HTT_DATA_MSG_SVC); pdev->htc_tx_endpoint = ep; + hif_save_htc_htt_config_endpoint(hif_ctx, ep); rc = 1; } - return rc; + return rc; } int htt_htc_attach(struct htt_pdev_t *pdev, uint16_t service_id)