Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1485428imu; Sun, 18 Nov 2018 02:47:42 -0800 (PST) X-Google-Smtp-Source: AJdET5fditx2kp9nch89nPzEr9RCx2o+ARzPaDlszIFYF3nKZimWYO1QelzqK561hkbgxYOj6zoF X-Received: by 2002:a62:4502:: with SMTP id s2-v6mr18565222pfa.31.1542538062275; Sun, 18 Nov 2018 02:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542538062; cv=none; d=google.com; s=arc-20160816; b=t4JjIatl5kNJtnpH2WBG0wSYXwfnIJ7u8JIhyql1HZEsV0ANuWZy+HLPb2ia81TwIZ 4zd4akgPRVg0egwPPT8TLsNtDH16ko0SnvBHn0+QGMcAMKnU08fP4KUuPSxMOfl3+sDt rPRrz4Lj3kwuMu1yQbStQBJeBBbM1MWPJNfeX25GFZHKv05jHwu4eqbLAYmuZZmmzaYU 6zYoTwnZnFGM+Fb1mt5Vi0uI4TGjts8p6xnUlTddbkfehft83HpNdH+X3LmlVTUASejw 38Sy3+3Cn9FM9/1K/8PP6Y/LMcwQqwG1efhFjaHqkUQJPkigRHcFz38VyWNb/phho1RN qTwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Rq6M5lWaJf61oMN4LtDuQ8i0wRQFd1q9g+rP9Q6dG0Y=; b=VW77ZZEfN4ycSUGF6RUqZTvRWmwGzOMBSKPa49llIdnRduGDWNJXL9VS2Lcl2a5AnS Unr9J/cEuioDqqoMl9ahLb601xw8ZQxDBvRAMgprKH12BlUszX3sg0HAMF6++UuupNOY faynKCik26rgjVs2UVgZKV5hMsak8FwWD2IdY18KVSQesIAKXWIK8AXv2AfQsWddXsE2 VSFGR4EKu3XTn2QXIELQzUes/hvZE/nkbSVKBlhOJY3QUlY0xn1kgiAY0TbzO/0E/1CR JzmwbvNLXvRzJGMIowdnLnGDygb7LIXNoCAw4WXsNdZOPyGJ7sLeff65WE65+JZ35yeY rhEw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si23492541pgh.422.2018.11.18.02.47.27; Sun, 18 Nov 2018 02:47:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727164AbeKRVFZ (ORCPT + 99 others); Sun, 18 Nov 2018 16:05:25 -0500 Received: from mail.bootlin.com ([62.4.15.54]:52266 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbeKRVFY (ORCPT ); Sun, 18 Nov 2018 16:05:24 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AFA6220791; Sun, 18 Nov 2018 11:45:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 64913206D8; Sun, 18 Nov 2018 11:45:14 +0100 (CET) Date: Sun, 18 Nov 2018 11:45:13 +0100 From: Boris Brezillon To: Johan Hovold Cc: Rob Herring , Greg Kroah-Hartman , Frank Rowand , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , stable , Nicolas Ferre , Josh Wu Subject: Re: [PATCH v2 5/9] mtd: nand: atmel: fix OF child-node lookup Message-ID: <20181118114514.78a9e3ee@bbrezillon> In-Reply-To: <20181115142648.GJ19900@localhost> References: <20180827082153.22537-1-johan@kernel.org> <20180827082153.22537-6-johan@kernel.org> <20180827102820.3abf7291@bbrezillon> <20180827084414.GZ14967@localhost> <20180827104842.26bce912@bbrezillon> <20180827094423.GA14967@localhost> <20181023205117.745a8f97@bbrezillon> <20181115142648.GJ19900@localhost> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Nov 2018 15:26:48 +0100 Johan Hovold wrote: > On Tue, Oct 23, 2018 at 08:51:17PM +0200, Boris Brezillon wrote: > > On Tue, 23 Oct 2018 13:28:09 -0500 > > Rob Herring wrote: > > > > > On Mon, Aug 27, 2018 at 4:44 AM Johan Hovold wrote: > > > > > > > > On Mon, Aug 27, 2018 at 10:48:42AM +0200, Boris Brezillon wrote: > > > > > On Mon, 27 Aug 2018 10:44:14 +0200 > > > > > Johan Hovold wrote: > > > > > > > > > > > On Mon, Aug 27, 2018 at 10:28:20AM +0200, Boris Brezillon wrote: > > > > > > > Hi Johan > > > > > > > > > > > > > > On Mon, 27 Aug 2018 10:21:49 +0200 > > > > > > > Johan Hovold wrote: > > > > > > > > > > > > > > > Use the new of_get_compatible_child() helper to lookup the nfc child > > > > > > > > node instead of using of_find_compatible_node(), which searches the > > > > > > > > entire tree from a given start node and thus can return an unrelated > > > > > > > > (i.e. non-child) node. > > > > > > > > > > > > > > > > This also addresses a potential use-after-free (e.g. after probe > > > > > > > > deferral) as the tree-wide helper drops a reference to its first > > > > > > > > argument (i.e. the node of the device being probed). > > > > > > > > > > > > > > > > While at it, also fix a related nfc-node reference leak. > > > > > > > > > > > > > > > > Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver") > > > > > > > > Cc: stable # 4.11 > > > > > > > > Cc: Nicolas Ferre > > > > > > > > Cc: Josh Wu > > > > > > > > Cc: Boris Brezillon > > > > > > > > Signed-off-by: Johan Hovold > > > > > > > > > > > > > > Acked-by: Boris Brezillon > > > > > > > > > > > > Thanks for the ack. > > > > > > > > > > > > > I'll let Miquel queue this patch to the nand/next branch, unless you > > > > > > > want it to be merged in 4.19, in which case I'll queue it to the > > > > > > > mtd/fixes branch. > > > > > > > > > > > > Note that there's a dependency on the first patch of the series which > > > > > > adds the new helper. > > > > > > > > > > I was not Cc-ed on this patch :P. > > > > > > > > Yeah, sorry about that. I made sure everyone was CCed on the > > > > cover letter, but guess I could have reused that list for the helper as > > > > well. > > > > > > > > > > Rob can pick up the entire series if the various > > > > > > maintainers agree, otherwise I'll try to get at the least the helper > > > > > > into -rc2. > > > > > > > > > > If everything goes in 4.19-rc2 through Rob's tree that's fine, but if > > > > > it's queued for 4.20 we might need an immutable tag just in case we > > > > > queue conflicting changes to the NAND tree. > > > > > > > > Ok, thanks. > > > > > > Hi Boris, can you pick this one up. It conflicts with "mtd: rawnand: > > > atmel: Fix potential NULL pointer dereference" > > > > Sure, I'll queue it for -rc2. > > This one hasn't showed up in -next yet, so sending a reminder. Applied (thanks for the reminder, I had forgotten :-)). It should show up in -rc4. Thanks, Boris