Received: by 10.213.65.68 with SMTP id h4csp1141664imn; Wed, 28 Mar 2018 21:56:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48WFWrZELwEaKouBf5egeEDs0XXugBnMvhpOQKCJ4TlLDV+ryVu0sakEdN1vE/Hq3KFE0sq X-Received: by 2002:a17:902:525:: with SMTP id 34-v6mr6612575plf.267.1522299401079; Wed, 28 Mar 2018 21:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522299401; cv=none; d=google.com; s=arc-20160816; b=yyJhrAWsHQnwh5BQf4z1BF3pDAU2K372KcU+pQ2I6S9ywrX/4fU4fq9i7J0TCAGbS2 KskyAgUwlV6cYEyrwJDu82l5WV1W2OaYjUQHZDjDWGzEs6OrypiEbT0ZgIzGKoHsQXqL nN/mYEMuNzFX4ihPq5oio0dcVVtFD9PcdK5QjBmLg9DsI2C+z4Xawh9iCgxIqw/1Kas5 flkipiNIwxG4CI/vxRptz6iO2g51tbYoZi7p78xq3tgU8dt0PREEFJLbX1/zXpXWW51j wfbDWubEwUXxtWbNgIIFS1ZDwudf9YM/L15kCSdcxI/1UsvEc8xhwINrBWEYu4uBCi3V lN8g== 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:arc-authentication-results; bh=vo1igKl+V8WjGxUo87lEE3aLekwoS/oVaesHckcLTqU=; b=ERSFEgBOUWPuR0BHBJxjS/kSsNrIry5dHnY7tYY5f1JluaCUZFiaP8X1WBFeN2kUqy riY6E0yWGQVbyf2a7Pw9qYczZSXLO7SUF5MgDEqLUDA2mudB9VawkMlqHANHFTlhgUmq cHGakGO6TEklO8DtzrtO6GlD7G2Hag8hxQe+e4+A+aZ9Yjp3aRXFxYQPCLwezuyZ4T0o tnWiGff1TozISplXDer77ucelp/mobDZNVdZTR9BVUW9tSj4+StF4pRW5sgn3PeeFeuL 748vY4C4jYalsWYtnAPTmvCZQVm7xNrGMdLsRvTnw1Eyi/bZzpFXQrE5o/kb49VRcloe jtrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Wks9aIfz; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZJ61F3UC; 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 v14si3550472pgq.266.2018.03.28.21.55.57; Wed, 28 Mar 2018 21:56:41 -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=Wks9aIfz; dkim=pass header.i=@codeaurora.org header.s=default header.b=ZJ61F3UC; 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 S1751994AbeC2Exd (ORCPT + 99 others); Thu, 29 Mar 2018 00:53:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36774 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbeC2Exb (ORCPT ); Thu, 29 Mar 2018 00:53:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4DE196030F; Thu, 29 Mar 2018 04:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522299211; bh=OHrGwvwjwaYfIJqc5oYQLYqGmIDkxd9dv3PrWR9q1hk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Wks9aIfzpdmHq9eZ0fUuoXAtwjbEGuRdCIqlFcZ9SFdvXclWY4OUXt8TWPQSjDgNm SW5bmE9RlFRD/0oHbhzY7fMFQaP+863td+rjqsTqxPVvRraqva0k29YmZNfmY0WoU0 X+5ub6X1Jjj7e7tVul3I1pqA+v5Z+a0SOUMVSGcs= 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.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (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 EC3E460558; Thu, 29 Mar 2018 04:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522299210; bh=OHrGwvwjwaYfIJqc5oYQLYqGmIDkxd9dv3PrWR9q1hk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZJ61F3UCjBL0RxO2VyraFb2nPPOFcWMVfaNdK0ITgtWkbGpByhsvYrYFsqooTwClj KRBCS3NINdLhltOFEhg2xU3CDO6ohd4g+hCM2ihWt/Gea0J31UsUwXv5KRO2mOTT7O 75ZKDRMeTo3QVXqdz+UZoiQplVaPuVgMZnKNgrjM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EC3E460558 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: merez@codeaurora.org Cc: Colin King , linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] wil6210: fix potential null dereference of ndev before null check References: <20180328174027.31551-1-colin.king@canonical.com> <49ef31bc36217349a4801dc2eba4735c@codeaurora.org> Date: Thu, 29 Mar 2018 07:53:25 +0300 In-Reply-To: <49ef31bc36217349a4801dc2eba4735c@codeaurora.org> (merez@codeaurora.org's message of "Wed, 28 Mar 2018 20:46:44 +0300") Message-ID: <87bmf7mqii.fsf@kamboji.qca.qualcomm.com> 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 merez@codeaurora.org writes: > On 2018-03-28 20:40, Colin King wrote: >> From: Colin Ian King >> >> The pointer ndev is being dereferenced before it is being null checked, >> hence there is a potential null pointer deference. Fix this by only >> dereferencing ndev after it has been null checked >> >> Detected by CoverityScan, CID#1467010 ("Dereference before null check") >> >> Fixes: e00243fab84b ("wil6210: infrastructure for multiple virtual >> interfaces") >> Signed-off-by: Colin Ian King [...] > Reviewed-by: Maya Erez Maya, as you are the wil6210 maintainer you can actually use Acked-by instead of Reviewed-by. Not that it really matters which one you use, both of them indicate me that you have checked and agree the patch, but wanted to point out this anyway :) -- Kalle Valo