Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2478697pxj; Sun, 23 May 2021 01:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRvVn0YgosAGByIfQ6KD4CX/jFb2a9qWZI3e4ydxT6ZLfa8hq5wdlpT+829EssJUOr5VCB X-Received: by 2002:a6b:6c0b:: with SMTP id a11mr8929750ioh.37.1621758167241; Sun, 23 May 2021 01:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621758167; cv=none; d=google.com; s=arc-20160816; b=lwS5mQOnidu8rDUwR4+6BhrOaYP4g7m8MThSX8c9mRpILwEfIy9+ZPE4sqkrcwhICo etqsnKrhwEeicktTHNm6dzJKNUxL2uq57VuJHYLVBpIUza11QrKDakgrly4cVag49Fa2 Pf6J1QwKIvlNvp5xt5pg4I0Nw//ho7AIEOfGtAlx4F/L7OoGVLko4IL0mOgClG0NSN2F nfev7k5ApkbkEQ/Cf6rPijTrMMooja93w7kNfgWrCKH8TiHobMHql9Apc52Zp2s9e0rk tfdF5i/zsZGAUvWv3wZNQYGxDqAJ3gH703KDEKYTeJoNL15mBI0K8ANX2rV1yo0/7EYk H2fA== 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=qDUQeZDZ6KfUwKfiXNI85LXMbM/tGWzm4e4VOkYoj3U=; b=aQCxpgWh0a6iJBChdZWXorNwtKB0Ez14Wb3wtCHNrFJUdg1+rrnHOuheFNa8G7Svcb krFGSZFHMaNV8a4TH1Qcdf1nLAp9r4oliTPEr50BEnwa3wLkfE5eRHtzWStgoR+WlixU BwIwuCE7IZ8bV2/5x6JuL7PgKKVS52G+wEQui+3BwA8KvFMg6XX9UQdbcDE1UlSqh6Jy la/Za0tZ58wuQvi73sFJvuwRp6RPOqeo3l2I6hiozwjkJu9Xp5jUxQ5PsWKBiKOzzgp/ YWXVeyxZNU3240+6qUzL+NBdurYHGkg8o0FW7ilvLBn7vrJgpDaVbqqsfxVd/Rl63iFI rDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BxQGlTsr; 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 n1si2533204ilt.65.2021.05.23.01.22.34; Sun, 23 May 2021 01:22:47 -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=BxQGlTsr; 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 S231682AbhEWIWl (ORCPT + 99 others); Sun, 23 May 2021 04:22:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:40868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbhEWIWk (ORCPT ); Sun, 23 May 2021 04:22:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF82C61263; Sun, 23 May 2021 08:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621758074; bh=MICF+Uu1HkhetRxQCscJNaBrHSc35hE+tXwnn6k6VUE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BxQGlTsr5rBXr9k0Gh1xiDMJaKVu8hEpBcU8BD75BH1RlSMLE5q/MOipnZP80e3S3 ZA3H/dO78sbvmjI/DZxaUPTPHLc5yrVGjiyxI3dIh1NlDue3adN5ruhgORXE+qYoSD iXLMxUIrvdCuVo+I9ACpjjz7Qd9cuVeSacORuac8= Date: Sun, 23 May 2021 10:21:10 +0200 From: Greg Kroah-Hartman To: Marc Kleine-Budde Cc: Alexandre Belloni , Francois Gervais , linux-rtc@vger.kernel.org, Michael McCormick , Alessandro Zummo , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/1] rtc: pcf85063: fallback to parent of_node Message-ID: References: <20210310211026.27299-1-fgervais@distech-controls.com> <161861118020.865088.6364463756780633947.b4-ty@bootlin.com> <20210522153636.ymyyq4vtzz2dq5k2@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210522153636.ymyyq4vtzz2dq5k2@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 22, 2021 at 05:36:36PM +0200, Marc Kleine-Budde wrote: > Hello Greg, > > On 17.04.2021 00:16:40, Alexandre Belloni wrote: > > On Wed, 10 Mar 2021 16:10:26 -0500, Francois Gervais wrote: > > > The rtc device node is always or at the very least can possibly be NULL. > > > > > > Since v5.12-rc1-dontuse/3c9ea42802a1fbf7ef29660ff8c6e526c58114f6 this > > > will lead to a NULL pointer dereference. > > > > > > To fix this we fallback to using the parent node which is the i2c client > > > node as set by devm_rtc_allocate_device(). > > > > > > [...] > > > > Applied, thanks! > > > > [1/1] rtc: pcf85063: fallback to parent of_node > > commit: 03531606ef4cda25b629f500d1ffb6173b805c05 > > > > I made the fallback unconditionnal because this should have been that way from > > the beginning as you point out. > > can you queue this for stable, as it causes a NULL Pointer deref with > (at least) v5.12. After it hits Linus's tree, let stable@vger.kernel.org know the id and we will glad to add it to the stable trees. thanks, greg k-h