Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp840956ybj; Tue, 5 May 2020 08:21:34 -0700 (PDT) X-Google-Smtp-Source: APiQypIMIF+cKkPvploU87sriXQGa9TUVlo6ggEImgP7frsoIbt5aRfRG2xp7pGv9sCgtStN9m58 X-Received: by 2002:a17:907:435d:: with SMTP id oc21mr3279363ejb.100.1588692094128; Tue, 05 May 2020 08:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588692094; cv=none; d=google.com; s=arc-20160816; b=lLHaVCE5bagNrSHgC6ojr+hVBhA9oCVGOHLrmlLU5R8jq8oYUwBSBE3PjxMu2kdiP4 67aVFAAWe9OGjbtPun/PLyzTVSm45icv0bCggic+1aCI/xJ74yfkzDOsiLPr1O1Bpyqy xxP9aN0UvvJk4agUGGt/H7teE7t9P0nRvXFiMuJIw421K7A9jew3fPFPkrZWWKww35FN cMnFgPqR1/EQs2fTINoaHAbBN5eUrTs8f81ugFzhDzJGdUBEpWeVM7OTTQuVRttRoiOj CpYJp+WkiWh5DfTlffHEUC4J0199LZJ+wzMVBm52mJ5Uhfac2/KaLnjcna+1OFgxE5x8 ZMlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zVEPjDf0alkw8LbRQL4oE/Uonk3A86//YxUBRAymizM=; b=g2J7iAvm5gjX6BvYjjVK9AwaKYNPGdNNJ8/DNANofGPjQKdcp9GY7KX40IjDfdGekN E0aFQaArbEpz6/Sh2hLkQCQuwYi16aeP+2GvQN7xF5BC63Nbdh01Cn/I2kbQ7X/FFhsL +0EphJaKqlrFdYSphKhjJRDcmxh3BE+dMuIGuVxacgZMzwUfSF6uCYVEZSFr2J/1NFsH 5Cuz8IsmwFp1qUOb5GS7BeAunsdYh1/lC4XTQvPQMwCTMHvugY+KudIh4xs9Y9jDotSB 48XTVoqk8BRUiyKKeTdjHr4kBEooV+2UwnhKigVd7/kTWbF7Bo7LkWa9aTu4B9GHHpWO Zv5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=Ry80H3sP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si1300023eje.287.2020.05.05.08.21.07; Tue, 05 May 2020 08:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=Ry80H3sP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729507AbgEEPUN (ORCPT + 99 others); Tue, 5 May 2020 11:20:13 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:7069 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729261AbgEEPUN (ORCPT ); Tue, 5 May 2020 11:20:13 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49Gk1Q0mlJz8r; Tue, 5 May 2020 17:20:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1588692011; bh=lKiBtlC2rF4WszJJ1J86rqn0pACHMTtp0FdEI1MvRMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ry80H3sPtv1CAGFJdpNJGsCWtrEZWnVjzZdlshBPbJO0L/G7MhL3lunZRtSRQ+v+3 luXpLU9UIaOj9kcrpbFE2y3PeExxaMP/qCigN2FR1OK9nt6pl7RAQlJfzL6uBfdL1w wDEP6CFs8dSWTnbplUCNCWWfubJP9/csGSsknYzgA0FojmokKbrhgr7LO94gn2/J1T 6S+wF31BXoKyM7yZMOkvcvHtB7kSQVoxBVpk8qQiGJttFKtVjnXlPdBtL8nEBifidN S5McqqciBCncRy3Ms3xvVQwcqYywilt/uV7rGhxpSvIDKxNQGvSLPwfoGvNpnB63l3 r3BOfS4aUhyjw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Tue, 5 May 2020 17:20:08 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Jerome Pouiller Cc: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" Subject: Re: [PATCH 03/15] staging: wfx: fix double free Message-ID: <20200505152008.GA8277@qmqm.qmqm.pl> References: <20200505123757.39506-1-Jerome.Pouiller@silabs.com> <20200505123757.39506-4-Jerome.Pouiller@silabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200505123757.39506-4-Jerome.Pouiller@silabs.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, May 05, 2020 at 02:37:45PM +0200, Jerome Pouiller wrote: > From: J?r?me Pouiller > > In case of error in wfx_probe(), wdev->hw is freed. Since an error > occurred, wfx_free_common() is called, then wdev->hw is freed again. > > Cc: Micha? Miros?aw > Signed-off-by: J?r?me Pouiller > --- > drivers/staging/wfx/main.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c > index ba2e3a6b3549..5d0754b55429 100644 > --- a/drivers/staging/wfx/main.c > +++ b/drivers/staging/wfx/main.c > @@ -469,7 +469,6 @@ int wfx_probe(struct wfx_dev *wdev) > > err2: > ieee80211_unregister_hw(wdev->hw); > - ieee80211_free_hw(wdev->hw); > err1: > wfx_bh_unregister(wdev); > return err; Reviewed-by: Micha? Miros?aw Fixes: 4033714d6cbe ("staging: wfx: fix init/remove vs IRQ race")