Received: by 10.223.164.202 with SMTP id h10csp214730wrb; Mon, 13 Nov 2017 05:24:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMa04RsIBWOxpmyKJ9i7EKD/ibEIACPqV9diPgUsXYtvgq8S6LWvIuqp5DSpEbVZnm58EOvr X-Received: by 10.101.71.197 with SMTP id f5mr8558553pgs.266.1510579452915; Mon, 13 Nov 2017 05:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579452; cv=none; d=google.com; s=arc-20160816; b=O/KC6afwCTNNBdxpug9VEmg8Mtj8WdhbUF3BCLREkX7Nr+gGWKf8TH8B0Orrc1KeL4 Vuz5cSJ/s8MQeQrE6N0LWUsj0xL3G2Mc8jxYHk8iEdd1xYr7DWFnlCeCU4tuoi74mA9P Ay+PBxfEF/KGlZQs3kGgJzaOaHHmFteDTNktrJitTO/k4w+I70kVtVpNMbZx5rY8nFjo bWlkLJhjqRA9IsS7hvs8YJNwgUVWrO+NYtCIy/X3FfcDTVEG/xCjPP5J1ftAhZWFJj+g 4bwULaUMBZGQQ09+iyMJ9yFNNKPNbiAyJGPzE8VVLaR/Loh4jkrKn90MokgT9lDN9suF ivAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=S8ANgtbvF2eePSAS3uxrf5GUg/xZ6WjgpFZlDCPT85E=; b=OxldxEao7JxCwySP34/5eTeuUpC0kUX5NI0c9cZ0UzLulYwhEw82Secp/MtzOdOfeh dQ+QEovGLifPRo1RT26yR1tQWJYgYJk5kKnE0iXJYFeWGNF8bM1hYNb/8um4vgrHzoiG /IcOC7Ow29Z/3k+DfHjbnUcbtGU9JIf8MNV7CWui0h20JdNp3h6FE10NblTTFFCthLwz zs0N+U0lg6IDn3VwcKbbZoe5Yw16YHVf1wtn+j1U5Cf7tr1FGkpdAfgERPr2hUvVAEED Zub1gAGurgmbo/KprqHjS9HjpatUZ+3CNdcj36uSTme1rCI6lOmeKQ3MbXy0vWMjQlyf TDvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33si14901929pld.561.2017.11.13.05.23.59; Mon, 13 Nov 2017 05:24:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754610AbdKMNBV (ORCPT + 95 others); Mon, 13 Nov 2017 08:01:21 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50144 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754594AbdKMNBN (ORCPT ); Mon, 13 Nov 2017 08:01:13 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2DF2A9C; Mon, 13 Nov 2017 13:01:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Kalle Valo , Sasha Levin Subject: [PATCH 4.9 45/87] wcn36xx: Dont use the destroyed hal_mutex Date: Mon, 13 Nov 2017 13:56:02 +0100 Message-Id: <20171113125619.506952022@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bjorn Andersson [ Upstream commit d53628882255481b710641dd0118fbd80af6e983 ] ieee80211_unregister_hw() might invoke operations to stop the interface, that uses the hal_mutex. So don't destroy it until after we're done using it. Signed-off-by: Bjorn Andersson Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/wcn36xx/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1165,11 +1165,12 @@ static int wcn36xx_remove(struct platfor wcn36xx_dbg(WCN36XX_DBG_MAC, "platform remove\n"); release_firmware(wcn->nv); - mutex_destroy(&wcn->hal_mutex); ieee80211_unregister_hw(hw); iounmap(wcn->dxe_base); iounmap(wcn->ccu_base); + + mutex_destroy(&wcn->hal_mutex); ieee80211_free_hw(hw); return 0; From 1584464861533514025@xxx Sun Nov 19 03:50:43 +0000 2017 X-GM-THRID: 1584464861533514025 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread