Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3808317pxy; Mon, 26 Apr 2021 10:12:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK/sWwleMbvqKN+nqMWJf/r/f7N7pCxrMaa81VQuJhwKZyARWmZYgrEq3oHuvkWU4iezTN X-Received: by 2002:a63:e206:: with SMTP id q6mr17720886pgh.225.1619457168067; Mon, 26 Apr 2021 10:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619457168; cv=none; d=google.com; s=arc-20160816; b=jjAsu16MGt1rMlIDT8r0ygLrQ4Xr9CQ8ACmX7OGx0RhHL1VLdcsJluWlOCeekgZjPd fKxiy7mF0VjnbJqHaZ4gt4hbh/qedegD/gVjJVEec8W3b60CpoW0zHrz3jZQAgIjFZbT 60ZsQY55VjCPBeguwZHUIdv5eDotfDmO339v/YGCRH6O5xkeeGA8hyplv7Ivp5Iqhyy9 swfyByJowAQLFxYlF/UYCf1S1+O/aF9Fi85lXOcD9xrFbF/OsM1MvHc8TL6T2pkLcGeW bjlWJw5o+j3pptajVGD85XlpHyP7jjwUFwsjIDtoj+DpWE/N6mGtao/9e3MFlT71Qqm7 H0Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cEiUgVniDxK3U9b+pKVE6/063+xRQ9dU3om7R5F3IQU=; b=dFlEipywdUq5TApO0+04/piyQ8U2vizypBrZ/LEeXb4ZnWzI+KG2viZYAUnkOPLJMI T+3/M3bmhABblkInAsk4PhqvMPhVECyajlSBxhpCmrsOsT87egZewNo2plTWe+fcDHeP HcoQjyS90/RXQy2X8lAgtGnnP9SsnTqXGxgvvlTngnTzG+80shZcGhAYJuqIR6kQOkaC 9OapJTTKLTXkHqsXj+3xu6jWjtG1Qpr7zSm+rOulV+QlV5Fx8coes7q1u30367klL6k+ 8tpwX/uqSMbePkWUP75z4ddF8UA4M5Tza9tK1N+mpPWcOR8kporm1YPOYiK20TV6g+++ 4uHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="fEbJy/Dr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si18820917pgl.304.2021.04.26.10.12.34; Mon, 26 Apr 2021 10:12:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b="fEbJy/Dr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235781AbhDZRMk (ORCPT + 99 others); Mon, 26 Apr 2021 13:12:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:55194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbhDZRMN (ORCPT ); Mon, 26 Apr 2021 13:12:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E6D561077; Mon, 26 Apr 2021 17:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619457091; bh=9Edq1aMG8CWRijFR5pQXoKydW6XW2KTeiSta2MJaTCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fEbJy/DrroN/NRd+QpaXWeZSdwo4xp7Oeyo+JNEzoD+6mR4XYpy/TxxsnUa+x8zM7 V9LP8Ln3qRFQq6BL4kTfRJVIpTqNoBQ0IVdEe167mWmRVjL/TxhYxYLe4H2KLbXCWP iJd5cDw4iM6bzHZkAW81iuMvfC5zwerPRHvgJRNs= Date: Mon, 26 Apr 2021 19:11:29 +0200 From: Greg Kroah-Hartman To: Johannes Berg Cc: "linux-kernel@vger.kernel.org" , Aditya Pakki Subject: Re: [PATCH 070/190] Revert "rfkill: Fix incorrect check to avoid NULL pointer dereference" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-71-gregkh@linuxfoundation.org> <911d4b8d3e9c68860ef4163fc4cce3b5fbb485c5.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <911d4b8d3e9c68860ef4163fc4cce3b5fbb485c5.camel@sipsolutions.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 03:43:31PM +0200, Johannes Berg wrote: > On Wed, 2021-04-21 at 12:59 +0000, Greg Kroah-Hartman wrote: > > This reverts commit 6fc232db9e8cd50b9b83534de9cd91ace711b2d7. > > This commit was fine, though the commit log is misleading since there's > no dereference yet, just a pointer calculation. I may not have seen that > at the time, or have decided that the slight commit log inaccuracy > didn't matter. > > I'm inclined towards keeping it, since it removed a BUG_ON(), but > there's no reasonable scenario where somebody could end up calling this > function with a NULL pointer. I've dropped this revert from my tree now, thanks. greg k-h