Received: by 10.223.164.202 with SMTP id h10csp102911wrb; Tue, 14 Nov 2017 11:51:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMbjRUw4X4Dur2CAFRpp4iWsCVn/GhhokSHCC9RwC6Q0jiw1ezJcpadXMda/cpJU1uAmUoYm X-Received: by 10.159.218.148 with SMTP id w20mr13917552plp.398.1510689071888; Tue, 14 Nov 2017 11:51:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510689071; cv=none; d=google.com; s=arc-20160816; b=zyBl6KSRRo6uY8jCUJwtKkSrSqVUjnZ4UUjVnRT2W7TWJ6fhATobhNQhPUdgVeW+Sy 3vC/PvaNQBkDubWXed3mLUQ9YCys5OAbNzvl57eShgClggB3SRg2aW0qVYjzc/Ja/GFK TX/cFkA9Qc06aAoS4VFX4OSJrYaR1WnkmHVIlNEsgpD9qoReaqM83R+yPPLpC+J53OxV ZIxyumrfFiMwCieQlHgzRdFHxsujYOnAZfoeB3+9+Ln8RVK05Rp8pEzKrsd7RKjOLbcp giQ8ttk0UXQAlxUYNWFJX/mla9q/H4WPgKwGMe0C0loQtQ1+EsVAd9QAcQJl46+pQi01 VEqw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6yaxut83l4NcfX2tn40ZF83UERXcUwdmZ4FEHMNMtbc=; b=NloZ4fWi1lpf9/+FgMNlW+Sqo4QpJnatRfJ4mgwX6YdAfibIAhQ0GLtJja06rcDwIm HxVn3mftDO8gG4qyS03GJr4wAEinIzU6beEdurFYUFsqR9U32SuBXjrB+Y9aLGozTYJu b1cZdKP8Egqy+Gu4w4JhyOlJOoLT8GXKV0SGgaZwYO7JxJwS682+2KV2R8c4SGITqIwi 2bLX/ZKyXksOVQq4tYa4nwoRUmBSC2eI53ibltWBUvcivglxlx4KXEHldfOyzO0vXOxx nkOuATCKH2l5oRolIK/fTQ+n2Iqs09+2fZHbwPjcwcsFe0/O7KCud6yo884UaeS4k8G3 9COA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ICSd6/pc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si18115337pfk.363.2017.11.14.11.50.59; Tue, 14 Nov 2017 11:51:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ICSd6/pc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756042AbdKNTsU (ORCPT + 88 others); Tue, 14 Nov 2017 14:48:20 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55410 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754635AbdKNTsP (ORCPT ); Tue, 14 Nov 2017 14:48:15 -0500 Received: by mail-wm0-f68.google.com with SMTP id 9so18813903wme.4 for ; Tue, 14 Nov 2017 11:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6yaxut83l4NcfX2tn40ZF83UERXcUwdmZ4FEHMNMtbc=; b=ICSd6/pcE5pWaHLOK2yCiek5RTi2ijxSy1y/e4eNQV9saPetiqObvrrci9djtSiGuw xn6bg40bTZ1K/xr7NncBi9ERnhSwo9H5PwySWrPejGBhIjtuYTvSID2Zwxt6T1dUt6Hi HG9PHjsTW+g4ZhdWqcX2lxrKvU+OMj23j4aa0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6yaxut83l4NcfX2tn40ZF83UERXcUwdmZ4FEHMNMtbc=; b=b1DOfW/vsYQ5YfrObSPaVeQw0/FsNCV433TimvQlX444nUI9gaKtCzbQf6bFdasoWI 1gCcna2wxGtrhAZPJirhHUdz2O3shawfYmo8gTMkumL/Gh/WFMHe/J+4yBPnZJWTx6ld 6FwIrNF9kN8TXkX7Gv5s0D0B9IOOsBgo2ar77CtFas5+dAWTIq3NUHBImdGO3ZXAn7Y6 lYz/xks39L1v4SbBd1pFCNLKjT/1chWZPK6c9pQ3DaBZ8yh2ChOhXoz3ZQAzt1+6bLAU XmVPYnuv4tLWL+pabc7QU5+VABSVW50k057ieekZ1L7ylcHOen5oX9u7CEwnpzrRpI6m SkRw== X-Gm-Message-State: AJaThX58d2p4YslLR6lntasnvZTe6G5m3WYj7Zy8HyPDDnW7Pn+Ocasj R3KuvtfNieWwK17WLnh2gYa31g== X-Received: by 10.80.167.37 with SMTP id h34mr18878783edc.223.1510688894389; Tue, 14 Nov 2017 11:48:14 -0800 (PST) Received: from [192.168.1.111] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.gmail.com with ESMTPSA id g9sm4169908eda.83.2017.11.14.11.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 11:48:13 -0800 (PST) Subject: Re: [PATCH 1/3] backlight: as3711_bl: fix device-tree node lookup To: Johan Hovold Cc: Lee Jones , Jingoo Han , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable , Guennadi Liakhovetski References: <20171113102049.9342-1-johan@kernel.org> <94c3debe-17f6-9151-eefe-129f2bd1cfd4@linaro.org> <20171114180514.GA11226@localhost> From: Daniel Thompson Message-ID: Date: Tue, 14 Nov 2017 19:48:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171114180514.GA11226@localhost> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/11/17 18:05, Johan Hovold wrote: > On Mon, Nov 13, 2017 at 02:16:09PM +0000, Daniel Thompson wrote: >> On 13/11/17 10:20, 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. >>> >>> Note that the nodes returned from the two calls to of_parse_phandle() >>> are also leaking, but fixing that is a bit more involved as pointers to >>> node fields are being stored for later use. >> >> Is using a devm_kstrdup() to remember the full_name sufficient so get >> each of the FIXMEs cleaned up as well? > > Yeah, that may be sufficient, but looking closer at this now, it seems > the name pointers (su1_fb and su2_fb) are only used as booleans, and the > fb_name pointer in struct as3711_bl_data is never used at all. > > So cleaning that up somehow (e.g. and maybe even dropping non-dt > probing) would also work. > > But since this is a separate, and less critical issue, I think it needs > to be done as a follow up to this one. To be honest it was adding the separate and less critical FIXMEs into the patches that attracted my attention in the first place. ;-) Daniel. From 1584065765621893441@xxx Tue Nov 14 18:07:16 +0000 2017 X-GM-THRID: 1583945945590122535 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread