From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbdKTKqC (ORCPT ); Mon, 20 Nov 2017 05:46:02 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:42704 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdKTKp4 (ORCPT ); Mon, 20 Nov 2017 05:45:56 -0500 X-Google-Smtp-Source: AGs4zMYIXj0r/r9uP7EKYUgvUgeJD5/2bQLAgz5G2Dhb8kFVuQpFKe9tQ1xgR4HlMVtVxXXu6RMC7w== From: Johan Hovold To: Lee Jones Cc: Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 0/4] backlight: fix device-tree node lookups Date: Mon, 20 Nov 2017 11:45:43 +0100 Message-Id: <20171120104547.2639-1-johan@kernel.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A number of drivers have been using the wrong OF helper when doing child-node lookups during probe. This meant that they were doing tree-wide searches rather than matching on child nodes and that the parent node could end up being prematurely freed. Johan v2 - add patch 4/4 which fixes two node leaks in as3711_bl instead of marking the leaks using FIXMEs in patch 1/4 Johan Hovold (4): backlight: as3711_bl: fix device-tree node lookup backlight: max8925_bl: fix device-tree node lookup backlight: tps65217_bl: fix device-tree node lookup backlight: as3711_bl: fix device-tree node leaks drivers/video/backlight/as3711_bl.c | 45 ++++++++++++++++++++++------------- drivers/video/backlight/max8925_bl.c | 4 +++- drivers/video/backlight/tps65217_bl.c | 4 ++-- include/linux/mfd/as3711.h | 4 ++-- 4 files changed, 36 insertions(+), 21 deletions(-) -- 2.15.0