Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1052307pxa; Thu, 20 Aug 2020 00:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz4QSuF486POKpHxUeoyhIPtyGTF6GQB++jyEpDrnXq707zp8M4vCMih6CRE6B1uBzD243 X-Received: by 2002:a05:6402:456:: with SMTP id p22mr1648193edw.177.1597909836507; Thu, 20 Aug 2020 00:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597909836; cv=none; d=google.com; s=arc-20160816; b=F+fFQgIPN1cpwrsElKLfzHkkbsr3saHO9SAwdgiSUjx1BNJ5A6csSaYR7hAYxmgAHM uqfcGKh4UeqzOy9/mT1bqigNMwqxIW7FJNaiAMVWYZbWQ3mTleaTQTAla3785gWX4wmx k682r0XjoAuh90K44K/sifz3x5s1Py/Phvm6bAwT+SrzhvWniMxKIrZjHnIv6bk2JsCr AC2GaWMMxrkFtWdEx1Nkf1ViTjyGYKvr85Ar/JzpFq1v/OE8M0GRG5fqnxlPP83vVkVS H4dJZ+9fT5NPqxjgE777dzmNET378dFCwET8UWFdHuP4txJXsu9zA1WBV8ympAbpr1qh 2KCQ== 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=XgD7oAraMYDOqNsfZffx0IqUVAmFZfcgzGRKvwI8mIc=; b=GZZVLMPzXWwvp2ICMWSs7o8vROC/yQED4vn1jlrNQu/ebBUEnOt8MkOtAJw4R79Kv8 MX9esaAO/DPimuUD4j8kXm1fq3BleKLRqvTY2L56qfjphrTzz2JBrvv0aI41pNIVcIsU UXDmutCBMLj6Z0EWsuEEcepr+TUfv9oqwQHCSXNExpMuJ5Y1JmIWyxwVAe+iVs4v+rpM Bg/AeBQ34eVqrHrBubINAhFP0IPj4AVZZufAddjATihgti9+gbVAdXL5jOm5U6q6LZgI bCkAXE/EWK4haqvYpf0P3r6qFvXII1PgV4K0KfhWr7LdpFJE4llohzAHhGDZVDY1vtxi +YHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XlaONjDn; 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 l12si914873edt.99.2020.08.20.00.50.11; Thu, 20 Aug 2020 00:50:36 -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=XlaONjDn; 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 S1726766AbgHTHt2 (ORCPT + 99 others); Thu, 20 Aug 2020 03:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgHTHtZ (ORCPT ); Thu, 20 Aug 2020 03:49:25 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFF7C061384 for ; Thu, 20 Aug 2020 00:49:24 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id y3so1059793wrl.4 for ; Thu, 20 Aug 2020 00:49:24 -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=XgD7oAraMYDOqNsfZffx0IqUVAmFZfcgzGRKvwI8mIc=; b=XlaONjDnEdsYg/6xqFFyWyTH0yWrgNaxkmvE+JWcDVZbLe+f/V7HKdjYROy7dyRpgD 0dP7O6uThUl2ocYIR33bisbTsV7PY13WDhwdzpoG+1juP2BKSoKiEUd4Vt3PTFRroRgA CKWIaTIqQLz/3rnEaEMJlfnH2LOTDEFgtejdx0YcZnIibXmUIW8mrTOAvdg1MlPqsu01 n4D3DHqkiUh/PUQcvUhn/MDFi/qLIJr1VljuscrpP3WooR3pcPufopgFHfsC1aJqsMPG YS204VOVM7RsVE5k9miArRNcssfkXrf1ORtWY/QTAhKAThyjJpNspv/DCPSgCLSS8wMB aMUA== 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=XgD7oAraMYDOqNsfZffx0IqUVAmFZfcgzGRKvwI8mIc=; b=B5x9U1GvVYQ3DrCztIHQeUiqPy0QS9cbunBxqDrx32XkBDVd7B0X3bIMrzH8hgub8d jOoFlrNTSxMlr6ezJCpoWhylVtrLP5SQmC8Wu+zg7O3l/rNTvy4+xWfH4OYU2aQ9gr6x ApxMXu2tkeI7AXAFDcVZ96JnwJ6XU/yeEFRX4k3khPg16CCZ59TDT/H3v1Zm/nq1VCQ+ jP3+R+IQ5M0A/0uW1XpatEprnnCKKkogss9OpHYvZhmqUgcJDQ73ETfT+sLCPMYt69i7 7021MR2TY/XQy5HoAqNyKkXix6Av51IYWMmpgwMUMaLyxXCORBtAMD/uz+LLub9f1Jg8 lUKQ== X-Gm-Message-State: AOAM531PrywwQS5ZcbTMV35IRrzhcZEL/bnSAUTb8nDLsvQyYu8NOpXN tbezKuRsvcLYEmNAmcKwFnOhBg== X-Received: by 2002:a5d:60cb:: with SMTP id x11mr1737733wrt.281.1597909761789; Thu, 20 Aug 2020 00:49:21 -0700 (PDT) Received: from dell ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id s2sm2438068wrr.55.2020.08.20.00.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 00:49:21 -0700 (PDT) Date: Thu, 20 Aug 2020 08:49:16 +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: Re: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error Message-ID: <20200820074916.GE3248864@dell> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3f9fbdb1.bc96.1740a9560d5.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 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. Reviewed-by: Lee Jones -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog