Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4044941ybg; Fri, 25 Oct 2019 12:31:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5IHdamKo/jrjFv0884FQVGMbWNUPPewa4JWz+9wO43Zu31ufd3UV50pYLZrfaLgo5Rkog X-Received: by 2002:a50:f40c:: with SMTP id r12mr5921874edm.50.1572031892219; Fri, 25 Oct 2019 12:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031892; cv=none; d=google.com; s=arc-20160816; b=sB1VRbL7RMwQ+sXWQoSKW/1NhDty+KOse/cnLbmnJc2hkezhld4Ut7JFA7CQyywmy4 HFmP49tGrnUMw6R6TX8lFs4QZBJTdj1ATLDeiZojMUQ27gH9keuzONzyzc/tJVr/yNEP w38Ash0eZIBz+nH+vejvqyu0CB4zHer95jNu0dRwg7Q3ZZWic5IEKEC6gk7u7POQVcu7 E1xO70I2To1iPvrEq/9grYcG2XOJLy9dKAOk5aAGVGVOd8vkzzoXG01nuk4KL+g25IBD b8oUiHqawO+TW3gZM5C0pAPqiS6KZ8dHRM/G0xnIh21xLOYmyiOxFowW3Oocs3l9KvEC YBuA== 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=exH7wNrvvCyD2xlKncd5d7scqAdy8JMCpKT6Dj5gCMc=; b=dPjyXyQTasEJA8pV/KWFFpiqs3Ukq6a6kQ0Xko4zX0dLYRMo2Hy8KznXa16swoO1N5 VMW7+xxI/C5yqPr/MW0gR/Zj1KywptFEaE2ViMs8MtrgPiz6MsteVV3eBsPSE0N4f2Cl bbDprTmh4wgPiPIWJdY1L6+fH/QeGm04n0/egUz5tW06cBOte+nPUWjfzPJ1p2FdyCwn 0rkQzC8HskcOrMpDpTEOzB0bZZz0JUrAyQfYYErH3u7WwFgUNIJT39y2OxCcaojjTT/u tEOj6EjJ8IwU2PmekCd1qJeeZbEoS+qgh263v4hzs7EaIFNLYCzVH5+XpEnHZI85TFvt j58A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="P/LiJppe"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x50si1968911eda.155.2019.10.25.12.31.08; Fri, 25 Oct 2019 12:31:32 -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=@linaro.org header.s=google header.b="P/LiJppe"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437552AbfJYIwY (ORCPT + 99 others); Fri, 25 Oct 2019 04:52:24 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40034 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436926AbfJYIwY (ORCPT ); Fri, 25 Oct 2019 04:52:24 -0400 Received: by mail-wr1-f66.google.com with SMTP id o28so1342795wro.7 for ; Fri, 25 Oct 2019 01:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=exH7wNrvvCyD2xlKncd5d7scqAdy8JMCpKT6Dj5gCMc=; b=P/LiJppexSpoU0kjzgG1KyPIzofv+N8qtq8srko9s77pZexKqCysdXk5Mg0W5PZmog eY08xRKGXJ/XNm90rgAupe0G1IgrKwfOHe3Fp5y7rMnVP6ZJLMG0hjKbIuVcHilTRPkZ yldxUjE23S3SxDeuZqBuJIMoDCTPV7ZDbFCmgC3vIEGJqdAge1GBJ8+xVZrWVaBPvJid ATvZxAcMDt47mFAG/n4ULaAwH3+6akM17+SbZed6kjdRK72F04RT1v/Ir+fr8x5BL+0N QaV/JpbzGc+QE40AgPvA4oS0xTJBMLU1tysNciz0ROYnCqRGdr2z+EjCp2+ZpwyyllIi w7aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=exH7wNrvvCyD2xlKncd5d7scqAdy8JMCpKT6Dj5gCMc=; b=LTuvb1g2qQE9rkHtGrq4FvexO2ceqGCme4vzzSQ8mY8bkEZ2hEUzljZm64+okStDo+ eSGZATPo8n/qIHp7LNOrRQzaFmRyHW9A/+y11oFhCjeVA9EG+hTl9n7MjlC7TVFdebeL dlu4FUj0dnh1Q5t4pi8l9XfTydapFV0sZYvXqiFYC7y0ryrZd7gAbyBQzOO2TXO9Xov3 SToo5BR/J6Gaj6te9jYr+sD+OhIffmgTxmyoBjtLK+Jcado0+zGbs5bxN4XPiPBoJv5i BEqxgERVV2O1Gj4nUtl+Glaq+MSLUEgvuwDJyFAMZg/Gp/ieagpJZjJ9dZwMlTb45d8V 1uUw== X-Gm-Message-State: APjAAAXUQaLZyRAcuTMX4bHAQjzdM9fdHqjxYci10OLthlU9tTx8ZgVb rvsnYGf/UteEl1M+ix/VJY3WCg== X-Received: by 2002:a5d:4a81:: with SMTP id o1mr1836767wrq.225.1571993541978; Fri, 25 Oct 2019 01:52:21 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id o4sm1673291wre.91.2019.10.25.01.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 01:52:21 -0700 (PDT) Date: Fri, 25 Oct 2019 09:52:19 +0100 From: Daniel Thompson To: Lee Jones Cc: arnd@arndb.de, broonie@kernel.org, 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: <20191025085219.ki5gvqlycncbeztf@holly.lan> References: <20191024163832.31326-1-lee.jones@linaro.org> <20191024163832.31326-9-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024163832.31326-9-lee.jones@linaro.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Signed-off-by: Lee Jones > Reviewed-by: Daniel Thompson Shouldn't this be earlier in the patch set (to avoid transient regressions)? Daniel.