Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3246145imw; Mon, 18 Jul 2022 04:56:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/9FLakags3EdXj9XefDdIEqGZLtuWms1IdNRX6BJz6TkAA7SCOezlJu05mg4JiUSvZYnw X-Received: by 2002:a17:907:2887:b0:72b:68ce:2fff with SMTP id em7-20020a170907288700b0072b68ce2fffmr24970568ejc.423.1658145366374; Mon, 18 Jul 2022 04:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658145366; cv=none; d=google.com; s=arc-20160816; b=EehOBHyiuITsrgj8ri99yvGdyI4gxqWF48m5Acf67ooz4vvvElvbIGSbc0DalVfu70 +gKE7r64HRpFuSTT3h7G2MCuLK16sc39zgIjjsMhoIMCcUj6rabrSO/sxmzgnlLvWZQ8 dqkTq1TiFGbPDMlFO/0LuqtctGECldcOLJAAZJW1gQHt5caTd8GkEWdyK8Z74Xg0AxD7 QNeFCZ2O5bUaOyaP3fBvr96Zl9iv1qCSTX0ENSILaHcD6XTtnMkpLlFj5SI3Tg+916jO i+qZ045lsuzfNoMdXPAKRC0m7wRmmKg2yA2el49/onJXqLuznBu4f66Oqd0XSOylwZbe b4xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=IvpyGNXyeauUdBdu+k+hUuZQVqLmTErcQiwfjxFt6t8=; b=Kieuodgi0P8L46NtD4BElXK19EV2Cy0kXiSMjlilTdRRNoAfmm2koSzDytfwJBylyb qZ+MyL6KCzWloOZU8o/KDCdtLo+lB7gHL1wFjPoHC/GKLLRBMV3MJ30kPsURbOpAwOZa xUID3f02ChEIh2gDaoS/8TFbXCzaP2fPROau4KbEGw51wnXAAHKvtykKWujgrABOsEYN 6qTNibY4qnrZ1KTSXvdZZEzB9LWAMMWHifeRJvJD1n0gTvw7JOl0dWGqJxE7DoqG2gXl pLVgOI5an1+QQVzv4+U4tP0KDIZ1k7JY6/rbQ4QeNv/8lBeeVnCFZbvbzQWacTq37TlO LoGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eb1Kz3aQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw18-20020a1709066a1200b0072b6ea73316si13256176ejc.664.2022.07.18.04.55.49; Mon, 18 Jul 2022 04:56:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Eb1Kz3aQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234563AbiGRLva (ORCPT + 65 others); Mon, 18 Jul 2022 07:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbiGRLv2 (ORCPT ); Mon, 18 Jul 2022 07:51:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5385D21E1A; Mon, 18 Jul 2022 04:51:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D50A5613EF; Mon, 18 Jul 2022 11:51:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A7EEC341C0; Mon, 18 Jul 2022 11:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658145087; bh=4peZeccaMY4buj1NfRubWz/kj288jrOowXgp/5FpdAU=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Eb1Kz3aQ5KvS9rBQgafr069Y+8mU0zhtwVJh7mQ0shGm0Q1XK7pIOAjUi1nPA0aN2 wFmKnTrsnxsvs/J/guKJacl/aFUjLA6qrU5dtsSOsbIS59MZM9I5MeE6sfzXL+ywqd NLxn17Qn7OwhdDgNi17tVo14djv71O9O15B7PTUQf8eCsgLoBfGKHVtfT0WxP+jn7R 1pFcQvOWFEPQFGC5oz9qF0oIDTJ9adeXeggxByJosbx6TvQhR3p5rmYYKqkS3DqLBS 8GaWXmQZyArMhzyHZPWpm8KwKRuHKLVMuUv3UUn+40O2SbSsswJxD2CygVl91oKLbm /6QiywjcIEwoA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [v2] wifi: p54: Fix an error handling path in p54spi_probe() From: Kalle Valo In-Reply-To: <297d2547ff2ee627731662abceeab9dbdaf23231.1655068321.git.christophe.jaillet@wanadoo.fr> References: <297d2547ff2ee627731662abceeab9dbdaf23231.1655068321.git.christophe.jaillet@wanadoo.fr> To: Christophe JAILLET Cc: Christian Lamparter , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "John W. Linville" , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , Christian Lamparter , linux-wireless@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165814507884.17539.1869457653160342905.kvalo@kernel.org> Date: Mon, 18 Jul 2022 11:51:24 +0000 (UTC) X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Christophe JAILLET wrote: > If an error occurs after a successful call to p54spi_request_firmware(), it > must be undone by a corresponding release_firmware() as already done in > the error handling path of p54spi_request_firmware() and in the .remove() > function. > > Add the missing call in the error handling path and remove it from > p54spi_request_firmware() now that it is the responsibility of the caller > to release the firmware > > Fixes: cd8d3d321285 ("p54spi: p54spi driver") > Signed-off-by: Christophe JAILLET > Acked-by: Christian Lamparter Patch applied to wireless-next.git, thanks. 83781f0162d0 wifi: p54: Fix an error handling path in p54spi_probe() -- https://patchwork.kernel.org/project/linux-wireless/patch/297d2547ff2ee627731662abceeab9dbdaf23231.1655068321.git.christophe.jaillet@wanadoo.fr/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches