Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2954280ybp; Sun, 6 Oct 2019 01:23:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyAYP6TfTDXQyumB4bbHHvA/qORglYDdd1R0iLQXcEjutAG12ETeusVwzCiMHKFzQzQoEE X-Received: by 2002:a17:906:1f43:: with SMTP id d3mr10975007ejk.321.1570350205656; Sun, 06 Oct 2019 01:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570350205; cv=none; d=google.com; s=arc-20160816; b=S9UQ3biordSC90mv6s+j8i+NSw0IkoOxh1jHuov150WRXM1aTb6sRfDUKUpOLS0Jg8 uU3GVlkyIKo+KrI75MXNwnZHsdrceURuSnv7rOpno8tJmbNW//aVIUTMVmJ8sttjw2hy Bobcv/WsJThXxf/7Ikvp500wZLR0dAdikfA1EeViMie1elt40evJHTbB4f2szlve1XdS tngFUonBHR2X/kxh4ffypL71C6sVLRUWmSwlEK9delPHI9DaaG456uKUMns4ZtpblCpg aVFHpTjZlF2x2AsZTyaegSEvna3TqbOhgKLLlCkJ/o2MYdhILzDNQ55qsr/jc/zfD2Pp JsEQ== 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:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=nPn8kLZfHFg71MOIGd3R02SSqDDbRL3iY8DGqVVoHsE=; b=WYlTC4n7mudYM91xXGFpR20f2A0oF5uuunhVm9Q5/pWymXRZ/FvgsK/DQAvakTCBJU 8dGRJHe8PJalWXt8ih3ZVOiKPE6N+1Tgr/cUkEl0Pt4Ii9yu4Z80oaIVIHP24I16ujCY mZCSQMz5cb0IA1JuiA2dd6Y3rYD/ol6w9j0Th9cAV1O2Rg2BYoEKLfuC8ttM29h3afza oXsjGFZZdzNMVciB6kJir2VXR6UPrjVFZhgXLcSLCwq0zX5tq+187PUKI1Dj5cF4kBFb ntQk/ngkBFZBZRpmi4y70QB6TzHCi0O/+2cFySiXD77Q8S5y4dSFQeMtuCAuack2ctsc eqAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=K7muK0k0; dkim=pass header.i=@codeaurora.org header.s=default header.b=ly4vbG73; 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 bt13si6311251edb.245.2019.10.06.01.22.59; Sun, 06 Oct 2019 01:23:25 -0700 (PDT) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=K7muK0k0; dkim=pass header.i=@codeaurora.org header.s=default header.b=ly4vbG73; 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 S1726345AbfJFIWi (ORCPT + 99 others); Sun, 6 Oct 2019 04:22:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49562 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbfJFIWi (ORCPT ); Sun, 6 Oct 2019 04:22:38 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4B2EC609D1; Sun, 6 Oct 2019 08:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570350157; bh=SqieHTOXpZqhU6RhETvmGOUXAlCtg2LP3Jyt4v6rf0M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=K7muK0k0+jHGbY6gbpJMiyKROHLTb3l/KChyf3Vr5qCrMSJdLyDSoRb4QlU/a1TAv Fdm4LO4IOkqsCdQEWbjKjACsvj44IwuWaMKMyzHrx7S7ubHL3htYXbHDBIPoYioknJ ZxL2Y+Ovy6qFU3DbCEQdSIGo/I9uJjSyBpo5x3QM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (37-33-18-250.bb.dnainternet.fi [37.33.18.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CFDEC601E7; Sun, 6 Oct 2019 08:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570350156; bh=SqieHTOXpZqhU6RhETvmGOUXAlCtg2LP3Jyt4v6rf0M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ly4vbG73eOFTxZ3qIpQUY7h4lzezSxESty2x4ukG0Bu0a0F+UwviFSp6I/+Ew3cxF SLKqB9ANMFMyRcfaUiB4Bmk82H8ynony7uQZKZAzrZmQnlHJ4qd+dbpzKWgW+HHqwJ O1sCcKWubN8EkSQYzA4wNaKoq6US95DJl8HW7hBI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CFDEC601E7 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Johan Hovold Cc: Denis Efremov , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla Subject: Re: [PATCH] rsi: fix potential null dereference in rsi_probe() References: <20191002171811.23993-1-efremov@linux.com> <20191004134736.2D517619F4@smtp.codeaurora.org> <20191004144930.GC13531@localhost> Date: Sun, 06 Oct 2019 11:22:31 +0300 In-Reply-To: <20191004144930.GC13531@localhost> (Johan Hovold's message of "Fri, 4 Oct 2019 16:49:30 +0200") Message-ID: <87eezqs2pk.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Johan Hovold writes: > On Fri, Oct 04, 2019 at 01:47:36PM +0000, Kalle Valo wrote: >> Denis Efremov wrote: >> >> > The id pointer can be NULL in rsi_probe(). > > While the existing code in rsi_probe() may lead you to believe that, > this statement is false. > >> > It is checked everywhere except >> > for the else branch in the idProduct condition. The patch adds NULL check >> > before the id dereference in the rsi_dbg() call. >> > >> > Fixes: 54fdb318c111 ("rsi: add new device model for 9116") >> > Cc: Amitkumar Karwar >> > Cc: Siva Rebbagondla >> > Cc: Kalle Valo >> > Signed-off-by: Denis Efremov >> >> Patch applied to wireless-drivers-next.git, thanks. >> >> f170d44bc4ec rsi: fix potential null dereference in rsi_probe() > > I just sent a revert to prevent the confusion from spreading (e.g. to > stable autosel and contributers looking for things to work on). Hope you > don't mind, Kalle. That's great, thanks Johan. -- Kalle Valo