Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1010722pxa; Wed, 19 Aug 2020 23:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycAKIYYCtWTdmQSn812um2vix/JmP5fQBZUcfkeMqvehJqyTsOxOt4/Uh7n7dqIHLvgO4Z X-Received: by 2002:a17:906:7e06:: with SMTP id e6mr1916230ejr.236.1597904675979; Wed, 19 Aug 2020 23:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597904675; cv=none; d=google.com; s=arc-20160816; b=WJedQ3gC8HejanSRX7vs8AoIwBbZEIKVjw2at353zVV6ug3IbnpCWZ2L3GedPbVyTu VH1dvaLTIOHcgKxejF3zNCqk3uxjvPxmiIpXlyB4kbXHM6l4J14FkU7NSo43xm2PRefV nOfs3HPi0i1nKBduqsnb9KyIxUZEKyVwaAPRe3QYXYa3/eH/L92dAS7WWENbJR5bbdGJ CCTsQbzAkCJiIGVWdhxv8Gd+2QWeH34tMcTJGVcTSiVlxqSmGWGho2BVfwkUNBptpRE0 6TIeqAHBu8StNjMbh4+B/MVWoUyvsykxeaTs1RMMyOiqOli/Ozrg+ySMXYAQAK8JY4Mo h2FA== 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=Rfe5cf8ONeOtyLL1u7/RmPWIu+jJLpGbwRQ//wGFeDM=; b=pM94oyPdypppFSPBghldLvqOMl6z3iJiOUuP2ul6fmXpuIxSTU5BUYX0Hjzc5E+smQ v/fCfeMx2OpM9/aNqi19tKbpARIbsekdy+1Hf/t3qhBvttG0CZA2SiQoO2PbEozAcmGz u+Uu2itygx36mypmFAd9Bw2NWTzGeufz2tY27W8ga59Y4fIbLdpQp8Mc72jefhXSbEwl +NjuLjUMMfTqiLyvLrgOTqqHRbKFrmJHeXhqcWyhy9zDjveWgcF6U7atAmV3q+UVeC3f 6P/MyTdBSD+hmdGzJBQZrg/yDJ6xRhsK2LfYfNtCDMs6ahs0EgpRtGWxSvT5LZqa3NRb X3/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HiW1tz0R; 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 dt1si793874ejc.574.2020.08.19.23.24.12; Wed, 19 Aug 2020 23:24:35 -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=HiW1tz0R; 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 S1726738AbgHTGXI (ORCPT + 99 others); Thu, 20 Aug 2020 02:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgHTGXH (ORCPT ); Thu, 20 Aug 2020 02:23:07 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AF97C061757 for ; Wed, 19 Aug 2020 23:23:06 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f7so935883wrw.1 for ; Wed, 19 Aug 2020 23:23:06 -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=Rfe5cf8ONeOtyLL1u7/RmPWIu+jJLpGbwRQ//wGFeDM=; b=HiW1tz0Re0iY3P915VZVsLzjSN7j7y5asxapsRDp7fVIOb5J7C5nLkBOeRcy6/JJWO xarF8bqLYq3w6ERx3p2kDYIik/29V6DZuGZFbqbD5Lg+FXbhz2mHa1YMfX0w+jR8rkWO iY0pyjp8BQL06RTpY8f2toCrB39wuV/Km9oeZE6fA14hiKCo/jtH4a/0KPCO7r1qhWRU FNAOnALWdwnBpDjDXJ0Be/jxzmHL7udncEIr+KW82c4+7cIdVG/nvqcHm4Io6Wnqmi6X s9pknqLptsmCuiGKZ+/gnKAYSR5v+OYRENLKCsp47kxlDJ8MR5JGEw5rgYU26AzZeeiJ glnA== 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=Rfe5cf8ONeOtyLL1u7/RmPWIu+jJLpGbwRQ//wGFeDM=; b=Lydz5rLbR9RqmuKJXZfytHym/Glgb6QJwGxeXcOFyngSk2bsFwFWX+bbhfL2yEXxvp PHsBNgBe7JOZPdkpya4rzrDMoAD+xvtIZJLvBWc7MSFMwEhIgcA85B6uVsXXa8i7JzdI FespBTBCOYkDRx2fUEFq6xcBkH60Jc9tq+u5ZFnB1p0t6ewSGPv4KSmlXSXYAF4G/4Vd 0ScBs3xVqdP8JALVURrOgBoVkL9Bzsw+KuLz6PFG+73JOIQSB3GPzwlsAazqXVGZdUSe OS5gZp4zCWuWwKAddN6go41tVNYPcqPyp5MozsbAxEK4fOq5TN8udr2NIfw/6C0fWHhR ZX6w== X-Gm-Message-State: AOAM531Q9k2Nd90X+8TrXHrRRlGCr7NNpURpB8IukuiHKuQlWlxNhGEr 9M9L8KR/zFWZSJT9byVCoEbsNg== X-Received: by 2002:adf:e506:: with SMTP id j6mr1495836wrm.287.1597904585322; Wed, 19 Aug 2020 23:23:05 -0700 (PDT) Received: from dell ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id t189sm2308285wmf.47.2020.08.19.23.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 23:23:04 -0700 (PDT) Date: Thu, 20 Aug 2020 07:23:01 +0100 From: Lee Jones To: dinghao.liu@zju.edu.cn Cc: 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 , Daniel Thompson , Gyungoh Yoo , Jingoo Han , Kangjie Lu Subject: Re: Re: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error Message-ID: <20200820062301.GD3248864@dell> References: <321fb03d-2307-7f60-f437-cfb99184dfd6@web.de> <20200819165702.GC3248864@dell> <217e3c0c.b58c.17409fd7496.Coremail.dinghao.liu@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <217e3c0c.b58c.17409fd7496.Coremail.dinghao.liu@zju.edu.cn> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog