Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp663448pxy; Wed, 21 Apr 2021 11:47:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXAZedPO0bPev2K5THFMR3HqyKOtkQydxovQKaKjDGyWlLUqa06CgAP5F7S17AdQgyCFvG X-Received: by 2002:a17:907:16a9:: with SMTP id hc41mr27349366ejc.84.1619030834641; Wed, 21 Apr 2021 11:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619030834; cv=none; d=google.com; s=arc-20160816; b=FjEVsws+vFXlaYupu631ACHUOG3RIjL/UlLLDfyb1YuHMJyUFAT5TRv/XSnuuGfP/r MYG5QW82O3tY/22zp9FISqlyokCXGrNaEBR/Q2yRJiFKsH1kZbC7LY6J2D+kMZ+mcT5z 8F4CLhIskaqxFrjh/KXOKtRBfTdUGeTPxJ2k8kQamjo4Bl1gJx9CEBvNIW6o7RcRWY44 Oam/I62FJszsReH2mg0b5RhdifLVviD9qnqexjeFPayRZOX8oDhFC2A32u8MLNSp2FEw aI0t5KuDjretRdRY+Jl5Nmb9VAPPWQk1AtF8NZraGsLe+2Cm2/0TqZaBzJa0ydsUh2Gc i2gQ== 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=fa/irkjVVrBYe/DoBSatp9OQUnQRB3hD1k9POPbjvQI=; b=Kr/aCnzBJXYKWZtV3JRUjbEjDOQgLiNU297E9Ehmr2pimXMtrPRd23Aw92DGT5Vccj rmC28/UUuZcHIpCq396Yb/2IAX+tmVr3ZdKJyRNFaymIWMIYOt8ZXhA8I0mXVYWBeWck u5S2yCM7YRFmbF2eSxPD2WChM1X5ZdZ8aTk8bB6OYrAm2VpkG/qKoF9hjD/ZYXqdOJnp lGWtRmZVQKTJdcEftvjEWssR+ddETRoZduaGV7+z6EAeDYYzQwzQqiqXninU2dLtYYZ0 5r94gHrlYKu0q6B6i9GSI3jr1hLPnVxSzDglc2xWpFOywJijFyCdA4Fury841ZBN54/L D/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ra+RCDJ1; 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 jx16si51938ejc.661.2021.04.21.11.46.51; Wed, 21 Apr 2021 11:47:14 -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=ra+RCDJ1; 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 S241860AbhDUNxn (ORCPT + 99 others); Wed, 21 Apr 2021 09:53:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:59606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbhDUNxn (ORCPT ); Wed, 21 Apr 2021 09:53:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D6CA611F2; Wed, 21 Apr 2021 13:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619013190; bh=eS93WFrLaeWM4LksKEZiibcuTPutGPetcYGctLJEJpI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ra+RCDJ1ZQTaGokJPCMfrAC6a65V43q2KPtPP1bFRQYVrGZzEd5LSs5+mcbDYmIti FKzmJL1y0yJeNLcroekdZAE2vNpaP7uqx1lzmOfQ3VcCm4F5zuE00VHR8GvvvYV9ff AyIy9t6oRJG7EXuMDlQXan2XPgdS4gYlwI1P+qyg= Date: Wed, 21 Apr 2021 15:53:07 +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. Yeah, these "pointless" patches are not good as they waste maintainers bandwidth, which is why I want to discourage them. thanks for reviewing these reverts, much apprecated. greg k-h