From 7e6e9b3180a72c841de1e7475e204ddde3647088 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Wed, 4 Jul 2018 21:14:59 +0800 Subject: [PATCH] qcacmn: Deregister rx callback if failed to abort P2P scan For failed to abort P2P scan case, it won't deregister rx callback and then memory leak. To fix the memory leak, call deregister rx callback if abort P2P scan fails. Change-Id: Iad4087175d437bf73363c782181b070492251f5b CRs-Fixed: 2268674 --- umac/p2p/core/src/wlan_p2p_roc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/umac/p2p/core/src/wlan_p2p_roc.c b/umac/p2p/core/src/wlan_p2p_roc.c index 1ff391e4b4ea..2e171a9244b2 100644 --- a/umac/p2p/core/src/wlan_p2p_roc.c +++ b/umac/p2p/core/src/wlan_p2p_roc.c @@ -282,6 +282,7 @@ static QDF_STATUS p2p_execute_cancel_roc_req( p2p_err("Failed to abort scan, status:%d, destroy roc %pK", status, roc_ctx); qdf_mc_timer_destroy(&roc_ctx->roc_timer); + p2p_mgmt_rx_ops(p2p_soc_obj->soc, false); p2p_destroy_roc_ctx(roc_ctx, true, true); qdf_event_set(&p2p_soc_obj->cancel_roc_done); return status;