From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com ([74.125.82.50]:44981 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753535AbdK2L3H (ORCPT ); Wed, 29 Nov 2017 06:29:07 -0500 Received: by mail-wm0-f50.google.com with SMTP id t8so5491633wmc.3 for ; Wed, 29 Nov 2017 03:29:07 -0800 (PST) Date: Wed, 29 Nov 2017 11:29:03 +0000 From: Lee Jones To: Johan Hovold Cc: Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable , Qing Xu , Haojian Zhuang Subject: Re: [PATCH v2 2/4] backlight: max8925_bl: fix device-tree node lookup Message-ID: <20171129112903.wpyalxs4mnghiobk@dell> References: <20171120104547.2639-1-johan@kernel.org> <20171120104547.2639-3-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171120104547.2639-3-johan@kernel.org> Sender: stable-owner@vger.kernel.org List-ID: On Mon, 20 Nov 2017, Johan Hovold wrote: > Fix child-node lookup during probe, which ended up searching the whole > device tree depth-first starting at the parent rather than just matching > on its children. > > To make things worse, the parent mfd node was also prematurely freed, > while the child backlight node was leaked. > > Fixes: 47ec340cb8e2 ("mfd: max8925: Support dt for backlight") > Cc: stable # 3.9 > Cc: Qing Xu > Cc: Haojian Zhuang > Signed-off-by: Johan Hovold > --- > drivers/video/backlight/max8925_bl.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog