Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1170863pxa; Thu, 20 Aug 2020 04:40:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzibCrd97D81FlFGy/61N2xgtiBSKtls/nAPRuK7fC1mivXbpcCvEhG/qSys07M6smhVTzM X-Received: by 2002:a17:906:9385:: with SMTP id l5mr2772362ejx.144.1597923619503; Thu, 20 Aug 2020 04:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597923619; cv=none; d=google.com; s=arc-20160816; b=FqJz4zJ6DBMvbroNhq7YZFmcTYgBi207fUkQE1Ib87Zsmt+8JIP0gqUmQs3i7lxz1v 35BBjPas9M8H8rGdWN950dNGsZS601KvE5xrrdhx1vt3tQVuFji1pK1nkCvPn7m0Q58C pyCVCSOjRy+mBi13UFDyUB8Nfl6QxLQbYdf/Cur4UaFNjRpflASUt8+yxszYHLDNQ5nW SMF45fDO5br6NgxDPSsL/jYZZ8V0ewN62Nyf/6Lxt3rzcDtn/skPvh3JJHmoX5HWmyWW yX0ScDhDd4knPQxgaYwKcqSnLdo+tk4Iy8U7RMs4xJT/JE9uI8JqNd9l6HKO8DjVh9W+ +4wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PCqH5LYqH1fQoc2ZlhhcJpxej9fx4SNk/neUhLB5CXQ=; b=acYc42TNOav5W370VSBHeO77glHem5h6aRnz4gASeSlXBwFghYtaT6kXuXwYL1i67y 1rFmxxaD5aZaFkDW0nqufbOvnHgw+GLIjwz77tu+gCJ5b8WyrE7J6sN2QyP8Cy7SVyh8 +vHwJnc4PRzBIZjPv2mR39cLUxxj5W07hP5u9o6PltnMUQG1PquFz27YVbW3l5/OooNw ZP8iN7atRVMyavq5Z5r1fLGJ0ajSIx22mRz22ZeOvrIqU3ASxqAGHEyDcCoItaKfBczx lmnZ5f55EJDZZMmLTS5G++ztzMi/vNzkL8ZTjkafgGmQ2kWPta6Cwp1nxS0fvRwbYoVG WG/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kWqe/UA4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t22si1027706ejy.433.2020.08.20.04.39.55; Thu, 20 Aug 2020 04:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kWqe/UA4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729679AbgHTLie (ORCPT + 99 others); Thu, 20 Aug 2020 07:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728324AbgHTLiV (ORCPT ); Thu, 20 Aug 2020 07:38:21 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61DADC061386 for ; Thu, 20 Aug 2020 04:38:21 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id k20so1280742wmi.5 for ; Thu, 20 Aug 2020 04:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=PCqH5LYqH1fQoc2ZlhhcJpxej9fx4SNk/neUhLB5CXQ=; b=kWqe/UA4IlH3O+11v3/2px5lEMFfQ31ZebCjBKikx+V66zCdAJ6QLVvHLBkY70i761 wF8hZrIdwtgxAuHYBU2TDAMny5PvAVi5kMr3WCKAZ6FdMxZXpNosxy+pu+j16mG/P7uy aQQltE97czfbBK1YLITqKzGzI1/kf/GquhMGxLZo5txY/v3gbLAjlM895Af/QZV/VORd HjIcHMUVyEWjZ6vgziSlnrCppksKhT6SwjVD5f9CprcPFHSI87duwPVtC6dVG6dk7UNB b1haTbJ+tAx0cSoR/WeoIxmT2JA4DwlEF35dQe+BcS0Fq0zF/SId8/OOc6gz3Me5kSnU 9zbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=PCqH5LYqH1fQoc2ZlhhcJpxej9fx4SNk/neUhLB5CXQ=; b=n1fAmKF3KcZ9OAU0viZBZiRf072pwzRAa710IfM8A3T/ZBGV2TdGPJc1inePjXsobK rUD6EAjY+Zx5VAXnRAD+kxvoaaW7nkTiFz1TVk81mjqFv0FrqxZ9ZWFAJlw5jXWQf4eh sYpgfVrd7wFwc6jWSjWddK9Kh1WVrt07TXBEDLAmvZKvC+9jiZdWpnvmVycsRcqHdANg 1rblQpenbv9YbpTsXyRNH8JAJRytZw0TtvB386/lyilSOxf7Bf2mGMI1W/kINtWu216e 9kh9w/a/OzqFITG+X93rgfe0x7s+3oOqv6eEUGUwglWaHsDe8FZWCSIQEbN1+Klq91NO z0Sw== X-Gm-Message-State: AOAM533julJlQv3boG1tfFlvw6ZcwF0ITWb3gVKvSuOhTpF89hlCV2mT QWvl9OUUtrvboKDrr63R0fpNPA== X-Received: by 2002:a05:600c:2157:: with SMTP id v23mr3002981wml.38.1597923499804; Thu, 20 Aug 2020 04:38:19 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id j11sm3792749wrw.79.2020.08.20.04.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 04:38:19 -0700 (PDT) Date: Thu, 20 Aug 2020 12:38:17 +0100 From: Daniel Thompson To: Lee Jones Cc: dinghao.liu@zju.edu.cn, Markus Elfring , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Bartlomiej Zolnierkiewicz , Bryan Wu , Gyungoh Yoo , Jingoo Han , Kangjie Lu Subject: Re: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error Message-ID: <20200820113817.742yvjvdy7a642ew@holly.lan> References: <321fb03d-2307-7f60-f437-cfb99184dfd6@web.de> <20200819165702.GC3248864@dell> <217e3c0c.b58c.17409fd7496.Coremail.dinghao.liu@zju.edu.cn> <20200820062301.GD3248864@dell> <3f9fbdb1.bc96.1740a9560d5.Coremail.dinghao.liu@zju.edu.cn> <20200820074916.GE3248864@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200820074916.GE3248864@dell> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 20, 2020 at 08:49:16AM +0100, Lee Jones wrote: > On Thu, 20 Aug 2020, dinghao.liu@zju.edu.cn wrote: > > > > On Thu, 20 Aug 2020, dinghao.liu@zju.edu.cn wrote: > > > > > > > > On Wed, 19 Aug 2020, Markus Elfring wrote: > > > > > > > > > > > > When of_property_read_u32_array() returns an error code, > > > > > > > a pairing refcount decrement is needed to keep np's refcount balanced. > > > > > > > > > > > > Can another imperative wording be helpful for the change description? > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=18445bf405cb331117bc98427b1ba6f12418ad17#n151 > > > > > > > > > > > > Would an other commit message be a bit nicer? > > > > > > > > > > > > > > > > > > … > > > > > > > +++ b/drivers/video/backlight/sky81452-backlight.c > > > > > > > @@ -217,6 +217,7 @@ static struct sky81452_bl_platform_data *sky81452_bl_parse_dt( > > > > > > > num_entry); > > > > > > > if (ret < 0) { > > > > > > > dev_err(dev, "led-sources node is invalid.\n"); > > > > > > > + of_node_put(np); > > > > > > > return ERR_PTR(-EINVAL); > > > > > > > } > > > > > > > > > > > > I propose to add the jump target “put_node” so that a bit of common exception > > > > > > handling code can be better reused at the end of this function implementation. > > > > > > > > > > > > Regards, > > > > > > Markus > > > > > > > > > > You can safely ignore any review comments from Markus! > > > > > > > > > > However, this patch doesn't appear to be in my inbox. > > > > > > > > > > Any ideas as to why? > > > > > > > > > > > > > Thank you for your advice. My outbox shows that this patch > > > > has reached your email server successfully. Maybe this > > > > ended up in your junk mail file? > > > > > > This has happened recently, so I was sure to check. > > > > > > Not there either unfortunately. > > > > > > Would you be kind enough to bounce/resend please? > > > > Sure. > > Looks like you sent it *only* to me. Please keep everyone else in Cc > when doing that, or I can't respond to everyone. > > Anyway, besides the subject line (which I can fix easily), the patch > looks good to me, but Daniel T must review. I've already offered a Reviewed-by for this patch. Perhaps it landed in the same place as the original patch... Daniel. > > Reviewed-by: Lee Jones > > -- > Lee Jones [李琼斯] > Senior Technical Lead - Developer Services > Linaro.org │ Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog