From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754564AbdK2L3K (ORCPT ); Wed, 29 Nov 2017 06:29:10 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:41214 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754517AbdK2L3H (ORCPT ); Wed, 29 Nov 2017 06:29:07 -0500 X-Google-Smtp-Source: AGs4zMakfZjWgOzGz1gbKfoGmhVkjXI5vEpblzYBJQNLQpYenBQW8W0JAtaxRLOSmR7JT7l+v8S5OQ== 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> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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