Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4119796ybg; Fri, 25 Oct 2019 13:38:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu2KVFaybMEXCxJzXSx9nQYIxZlm5wCzaPgxvcOQc9NdY+wo4w0dNPVC9R7RTlVSkSoGHW X-Received: by 2002:aa7:c1cb:: with SMTP id d11mr6207668edp.40.1572035910205; Fri, 25 Oct 2019 13:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572035910; cv=none; d=google.com; s=arc-20160816; b=DD/j4JGB1XVIXhkzOgvnJW4koGXGMuxLYRiMGb/o68rB65T/XurxP1JL3gIHKsIxSe EXsTrlSAOjqeKd+fsvr1bnIqN30GWL1dwKMdRTUcwvel/CYVQW0s9Rfcfg7fegmwbOmP C8XBip+vFxd2SlsSvvVKD38ylSDhiwiCQ93RWUzgz40pV2yJov/KcmfpFr4rO7IckBaX ePiJXm/qYVoKZbDW6jdZ/ASrj8oe0fiIcQmKLOFQm4VKV/KylEPylstxw2A7MZEPwayo 8ruU1NQNOAjC3nzf52yUYABKGhe/uzKq8bT/OArNAdtk1/pfk/iIiTO8SHVXT7GyyaIC RJqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hOMeQHT5QizvK4EdYa5Jsk3saKC1ABLJqlyHDkwtamA=; b=UyMbvkUXEL1lJZZEObkRevLB9FlXpI89Fbvh+TJFBtyJaQjWOAUK5jSDCsF+R1RtNM H46l+kvwqigkfAkuPt/xXqZzpj5kXisssWC8rfssL4ylKLXMoDQon7mK3gZ+R5lcwoSH lZ18DnVb/0cxbozrylkv47nSmqiRUht235sgTUqxZiyei1LcNvhcKVMWLs6qb493z6X6 CaZPU+SHmZC3mEcUU0ZpbaTpWglelqZy+2qY63hhVBs9PLteLI3z+FMDqwt/Ds6UhMyP 2zEDX8n5zm0dn9gXW8pg+s7GeXu7+Gxc9l0BfzSOm4ivDk5t9ZM0bwd9KSoem07R5k86 kUAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=cd06RRWT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si1860838ejb.126.2019.10.25.13.38.06; Fri, 25 Oct 2019 13:38:30 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=cd06RRWT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395364AbfJYOzL (ORCPT + 99 others); Fri, 25 Oct 2019 10:55:11 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33126 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393570AbfJYOzK (ORCPT ); Fri, 25 Oct 2019 10:55:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hOMeQHT5QizvK4EdYa5Jsk3saKC1ABLJqlyHDkwtamA=; b=cd06RRWTLCnJ82Oij3Cbi97qI s9jk8yIG6bfewthiFa0Jf4CuURoUsjgkTDT+sgtMZzOnRXWdLOCJO8boxdfOgJ7ePdcKvWKwqf6KY ie8Atg24+yu3JUht3+/HEH6+cApDuQAwISfqITmksq1Ji00dS/a2/lh3+pNmnQAzglXeg=; Received: from host86-174-61-171.range86-174.btcentralplus.com ([86.174.61.171] helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iO0zW-00075E-49; Fri, 25 Oct 2019 14:55:02 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id 7EEF7D020AD; Fri, 25 Oct 2019 15:55:01 +0100 (BST) Date: Fri, 25 Oct 2019 15:55:01 +0100 From: Mark Brown To: Lee Jones Cc: daniel.thompson@linaro.org, arnd@arndb.de, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, baohua@kernel.org, stephan@gerhold.net Subject: Re: [PATCH v3 08/10] mfd: mfd-core: Protect against NULL call-back function pointer Message-ID: <20191025145501.GG4568@sirena.org.uk> References: <20191024163832.31326-1-lee.jones@linaro.org> <20191024163832.31326-9-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ls2Gy6y7jbHLe9Od" Content-Disposition: inline In-Reply-To: <20191024163832.31326-9-lee.jones@linaro.org> X-Cookie: Keep out of the sunlight. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Ls2Gy6y7jbHLe9Od Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 24, 2019 at 05:38:30PM +0100, Lee Jones wrote: > If a child device calls mfd_cell_{en,dis}able() without an appropriate > call-back being set, we are likely to encounter a panic. Avoid this > by adding suitable checking. Reviwed-by: Mark Brown --Ls2Gy6y7jbHLe9Od Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2zDMQACgkQJNaLcl1U h9ABgQf9FLxe+CJ2ib38kOHsh+dWrewAHj3LPciwqrFUCQbdp/vtXpAjmCnHy0t6 5RbtY52V8l9ePzKffJ/H0KmmtEvXGEgosPbR/0i662aeVTmOyme7W4pZXMTTLMJ/ JIPMccu6ocWmYHsGy9QRE8ogdOQ6oC5Gmys1FDDj3iHI7MV+byj5tLco6eqGpH9+ 8fsfGfwAzwJfDXyoyMpjrtsivvJfXGTgYr0ozd5dVliSkRwABpNoRXCxi5QAqCUt Sm6unj7LOFcmt2GYtrNgg/utcd+A5coT55CCWA5Ib2/yB9KTj++tt2xr6C7FzQJG 38r3tEQ2oyzlkqLRc1Nl+oZDX7IcFw== =WgfW -----END PGP SIGNATURE----- --Ls2Gy6y7jbHLe9Od--