Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp642774pxx; Thu, 29 Oct 2020 10:51:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOBEVgSO++AWJxu1meXmZn7cxYGlwPhs65rfUwnOsYJGzHt47t6mUqC8CLdZ/A1TR0q09E X-Received: by 2002:a17:906:cb81:: with SMTP id mf1mr3825563ejb.190.1603993894488; Thu, 29 Oct 2020 10:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603993894; cv=none; d=google.com; s=arc-20160816; b=UudlaWV5EpBbhCHMTRNnJ8+g8snjbadqq6PW61VxHA3JXqKzzZ6akbO35Kto3yNtUk NZmJGuWieAeCMxpuc/aDJmqGZW8Qd83sAZDjPuiFu4vq1/MIBNHNKM5bpSwz/zp+cNWy nnUBJTksVV+ssm3zonKFTzNlZ+YlHqf/uS4RpHr0s0NJXZu7OTkfD5N0KFWkJtrtlcZ4 vOxkjABD1Pfvc6Mw96OkxaZDp03hTQgEL1Qvmy4AiBJfF5nsIl95DElc2+umEX4Hecmu mqijHSOfQIk4+uIo+5NoJWu6O8VpCVy5oGpwtLuhciBvf2TI4x3v9RCZ0fT+wwrLQsks p39w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wyHzRpo3UmTKYKaOnzeMR/tuUKe77v6GZNqJau8t5GM=; b=eRO5jfwJs9rt03X/DBheC6qKKXdpuarF/XsR9k7C/euV7lsNhStZmfcAyu6npqBHLj Rgl4i+rk6dJTUlbAw3l7wMoyhyP26ikBgIL81TPCqjhYlN2ROSwAHqjmQU5lyuqwmtl9 XV6A+A6BOkEPb0/W9p0WQX3/Ie35SAdKarxMRxBTqscyQxU46z4+M8bYyG/7ZZJ/sIMQ h9wRty92oJmgR2drI9ekCOxj1BQOq1KRpwv4RnpG5rEw90KGRc32xwdZD+9vRlzN1lHV j+8fa0lMir68/CilJGRaHvD9xcG3MQJKYBlhm0cIz3KX32gXgrOL41hz49wdYLAn7BAU Ic5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si2498221eds.448.2020.10.29.10.51.10; Thu, 29 Oct 2020 10:51:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725957AbgJ2Rtz (ORCPT + 99 others); Thu, 29 Oct 2020 13:49:55 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:33236 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgJ2Rty (ORCPT ); Thu, 29 Oct 2020 13:49:54 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0EAF91C0B7A; Thu, 29 Oct 2020 18:49:53 +0100 (CET) Date: Thu, 29 Oct 2020 18:49:52 +0100 From: Pavel Machek To: Yu Kuai Cc: linus.walleij@linaro.org, j.anaszewski@samsung.com, simon.guinot@sequanux.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH] leds: various: add missing put_device() call in netxbig_leds_get_of_pdata() Message-ID: <20201029174952.GB26053@duo.ucw.cz> References: <20201029092305.900767-1-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: <20201029092305.900767-1-yukuai3@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > if of_find_device_by_node() succeed, netxbig_leds_get_of_pdata() doesn't > have a corresponding put_device(). Thus add jump target to fix the > exception handling for this function implementation. >=20 > Fixes: 2976b1798909 ("leds: netxbig: add device tree binding") > Signed-off-by: Yu Kuai Thanks, applied. But it seems to me similar handling is needed in "success" paths, no? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --MW5yreqqjyrRcusr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX5sAwAAKCRAw5/Bqldv6 8nRfAJ9uiMVB0gb+8m/CP8bgrqR3cf4hLQCfadajXrLWwINndft04WA/RXfZ9ak= =uoXS -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--