Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp614413pxt; Fri, 6 Aug 2021 09:27:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDpet8QzFNRjyHMpT7cK82zKWOXYgvFB1L7jOHC89plt5KRbmvvOfYJSbr83Y4QLlwOfBp X-Received: by 2002:a5d:928c:: with SMTP id s12mr323853iom.151.1628267273791; Fri, 06 Aug 2021 09:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628267273; cv=none; d=google.com; s=arc-20160816; b=RCJKvC2osySC2E6E/NRe8Sc4yWmJtbXpbJv1kgEydlKQ8Z8rLAys4+slm+pqAWw9Mr 6TRS88Pge2lIV+g+2uf5XA6hobnga96XLceLt+eW/5AlTUn8rhd8a+iU6UK98uabiY78 rr+YqVCV6/tSQtdJpnobJxUFgkAPexyUxyGv+BuwKSP5zKFg5Dslt9iuTC9L2K36ehrD Sh7KnVYwkgRX5sDXiLzRnKFvDEBKrHFDyidFnkKeCsVsqmFuB7JqWV0ecOtg9rPa1q27 N/u5+ESomW5seWvBJRbb4NdvWFccMRKdv2+oQz42bNH/k0GyDI3SoZFL7+InZ1mpgaq2 UFig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=N2y4oRCNfmsOR5AcLj7KTqZExbR4TqZaeaiHeBAWq7o=; b=1GxyuweJ1mIhh2KwU3kSCbir41NAdrgK9jwHPvWaYc6BuVlVSkSDDUENmqeyYVSkgG yMnytqWJuliCh/khoF/6rHvapwsVqJzSXogRPjcrjTBeRqvzxyVyCSVlVJx/BAHjXnoW 7JUT/FfhghnDV6rBsT7/0axkNCCShRJCsPcvAnArRpariNUIgu+Q/73D7cyp7NQpzaHF bgQ4Q3voFG5fpz0aqzLYfD8smpTVSxJg8l+Uz3Ttz2D1slSsDdgmvMW0evIsf90dSGOB toeCDo70W/BSguWI9g3Botwc57ash1CJmavSPkJZbCTkpOUsNXmLRy+Rv7rD7YPDm5NL RnCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=S0MIYlKV; 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 j2si1735062ilr.103.2021.08.06.09.27.40; Fri, 06 Aug 2021 09:27:53 -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=@mg.codeaurora.org header.s=smtp header.b=S0MIYlKV; 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 S1343728AbhHFMfk (ORCPT + 99 others); Fri, 6 Aug 2021 08:35:40 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:16680 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343717AbhHFMfk (ORCPT ); Fri, 6 Aug 2021 08:35:40 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1628253324; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=N2y4oRCNfmsOR5AcLj7KTqZExbR4TqZaeaiHeBAWq7o=; b=S0MIYlKVBti4dThUFgq/St1y19X91dbIPDdqqYO6c6m8K1Pz90t811ScuU8+UhenB+Xinkb/ XdWHCAmHj3m229b+CU0XhDDyAoV2I+dLQ+7jNCl1sn+a7mITy1UdHnXetByoGP1LXCGD+IEs K+JmHkN5gweB3qcuZikNP5N2PxI= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 610d2c815c73bba6fbbc3543 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 06 Aug 2021 12:35:13 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 81AB6C43145; Fri, 6 Aug 2021 12:35:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id D3A5AC433F1; Fri, 6 Aug 2021 12:35:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D3A5AC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Colin Ian King Cc: Arend van Spriel , Linus Walleij , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , "David S . Miller" , Jakub Kicinski , linux-wireless , brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, netdev , kernel-janitors@vger.kernel.org, linux-kernel Subject: Re: [PATCH][next] brcmfmac: firmware: Fix uninitialized variable ret References: <20210803150904.80119-1-colin.king@canonical.com> <875ywkc80d.fsf@codeaurora.org> <96709926-30c6-457e-3e80-eb7ad6e9d778@broadcom.com> Date: Fri, 06 Aug 2021 15:35:05 +0300 In-Reply-To: (Colin Ian King's message of "Fri, 6 Aug 2021 12:28:29 +0100") Message-ID: <87eeb6bvk6.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Colin Ian King writes: > On 06/08/2021 12:23, Arend van Spriel wrote: >> On 05-08-2021 15:53, Kalle Valo wrote: >>> Linus Walleij writes: >>> >>>> On Tue, Aug 3, 2021 at 5:09 PM Colin King >>>> wrote: >>>> >>>>> From: Colin Ian King >>>>> >>>>> Currently the variable ret is uninitialized and is only set if >>>>> the pointer alt_path is non-null. Fix this by ininitializing ret >>>>> to zero. >>>>> >>>>> Addresses-Coverity: ("Uninitialized scalar variable") >>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware >>>>> binaries") >>>>> Signed-off-by: Colin Ian King >>>> >>>> Nice catch! >>>> Reviewed-by: Linus Walleij >>> >>> I assume this will be fixed by Linus' patch "brcmfmac: firmware: Fix >>> firmware loading" and I should drop Colin's patch, correct? >> >> That would be my assumption as well, but not sure when he will submit >> another revision of it. You probably know what to do ;-) > > I'd prefer my patch to be dropped in preference to Linus' fix. Ok, I'll then drop Colin's patch. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches