Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp609408pxa; Wed, 19 Aug 2020 09:58:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLiMAfaiuuK4zqncUztMy89sbBg4bSSDOkVhuwrcYopUFBkibOize/198qYZZhHUC8O0Jn X-Received: by 2002:a17:906:74d5:: with SMTP id z21mr27430229ejl.290.1597856316800; Wed, 19 Aug 2020 09:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597856316; cv=none; d=google.com; s=arc-20160816; b=uzdoHThG1ymdv+VtSyk40u9bKbXDgZrr6bc1TKfp+ye4ZVJFdF48OejiopBbfeFPbo Fx8CLdpyF8CXFeMxtdMczT8nq2CNeshTM8YXKJ4Fw4QcffWrbT1wZiktTXr+BCjNFmm7 STjnA7guuv0UV+rkny6WizInEpaE9keCtzCvBwT5kB01LmyFbw3BfpH0bLkVQEKjq+oh nn+1NqNsO13lah9r6x53xTU3HVTCz02na4xbG96C8FQ3Oi+6um+yQesOn/kk6GbqjmFL a0TiDAz/4xWdNk4UjLza4aXLdSH1/LSNmZhrjo43mcXHqWUvappehe+sd1/mkDn8GFRP xSgg== 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=pYhO7PbSDe8dru1dk/4z1pXylH1/0mvxSDfzBAAOOrk=; b=IIq2Mn1d4nzq5qJUEsGkAZRqeunGDF60zW9vAIBTi9VXXXD2/RHSXzYYkVQEAZ2m8G Nid6utboXsKcUB+1YMBo0aCO/ubKT02v1s+MuYlAiRY7tabT9gYcaf0XWk5ikRzdwR40 zf4sJKF3z43mj0s50ZvPgKoxGDiqtC8g5KhiMh7gp2c4CDq1AJglfIoPbjp1FquaZvbD B5si4uewVbMUjWrQ/XckcHpu48oARSUvd9wMusRwVILUsk+tzSzzWPwYJAYPSLgv3dIn 93Q5RJALofkgRMfiwngYschhORgRyYscgnkyfRg+LgqKJ/tdgvMdFyf0s8VtNIglVEBE 1Q1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CCVFYUUE; 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 w5si17863460edv.438.2020.08.19.09.58.13; Wed, 19 Aug 2020 09:58: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=CCVFYUUE; 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 S1727782AbgHSQ5c (ORCPT + 99 others); Wed, 19 Aug 2020 12:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbgHSQ5H (ORCPT ); Wed, 19 Aug 2020 12:57:07 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC5BDC061383 for ; Wed, 19 Aug 2020 09:57:06 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id x5so2761824wmi.2 for ; Wed, 19 Aug 2020 09:57: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=pYhO7PbSDe8dru1dk/4z1pXylH1/0mvxSDfzBAAOOrk=; b=CCVFYUUES1mcKzrLyt3Uqs9hjoeY+tJL5sKDMD90jBM3CZHjqak1l36nSYdbzmwHiM ShBiyCY0+gsgm2uPLeGH7G2dj9qmxT9SsE0Gr1R5exx5TeLVWfX6zkwSGuuAegx+feg9 cd+kDQto4FDMM8i0SIpIsYNdmSqqDHNglX9B9xFrE/aL/GgzJ52q3fO+bVw7zQvPgWSb PvOzsN6j3X1nHaXqiW8Mx959AAaS7Hgg8/JFaY9LRnHCBDNWUHK0xgaeFzf6fqkFc0/e j6OuefwpxT6vbWxzlisTrBHsiDSOsGTXRXtsFzWaDolcVpQrLKf/xLen8IASn9H5CKDj y2EA== 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=pYhO7PbSDe8dru1dk/4z1pXylH1/0mvxSDfzBAAOOrk=; b=qN7ZezDB3C1d3HsNmmMhln1P6GAvy1jpAJJC8odxXvJQ04ThgE9v+DyCFMZmkgomUz 6dFYgTzu3eEy++qexSvFHq+la01//yrbYnBKmemhdYftaNcPp1Uf3ZU9rQ2lHfAJCtI6 j4tFapEsVD81JaBvlEcdOjqGDf2aL1n3U2CHnP+s24il/gTG547OE058pYWaZiyUXd6l bGn+P57pgCvPjiww6JA2smahgwANIm4WkYRrcUII9+Vz1j9bRdtkphLxbG1P6vlRdIu9 OjGNSRJ6g+tl6d8LZvVf0K9/gllxGpKjHQaGHP8Z07Y0aqqef+4TPTA+Vt22Q6Hnioj9 79ow== X-Gm-Message-State: AOAM532jLycXIoKzhNlV/exr8gOhFvmvZi7ODDUyoVvGxxAF5rZ7KlR0 57bQlvhqVh2rxX+/1k7UiIORTA== X-Received: by 2002:a1c:448a:: with SMTP id r132mr5661262wma.158.1597856225352; Wed, 19 Aug 2020 09:57:05 -0700 (PDT) Received: from dell ([95.149.164.62]) by smtp.gmail.com with ESMTPSA id c4sm41113675wrt.41.2020.08.19.09.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 09:57:04 -0700 (PDT) Date: Wed, 19 Aug 2020 17:57:02 +0100 From: Lee Jones To: Markus Elfring Cc: Dinghao Liu , 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: [PATCH] video: backlight: sky81452-backlight: Fix reference count imbalance on error Message-ID: <20200819165702.GC3248864@dell> References: <321fb03d-2307-7f60-f437-cfb99184dfd6@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <321fb03d-2307-7f60-f437-cfb99184dfd6@web.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog