From: "yukuai (C)" Date: Wed, 03 Jun 2020 01:12:21 +0000 Subject: Re: [PATCH] pinctrl: sirf: Add missing put_device() call in sirfsoc_gpio_probe() Message-Id: <0c3372cf-342f-81c7-fab8-4a68e59ebbd2@huawei.com> List-Id: References: <01abac73-2107-daf2-d7bd-bef9d73d554a@web.de> In-Reply-To: <01abac73-2107-daf2-d7bd-bef9d73d554a@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Markus Elfring , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Cc: Barry Song , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Yi Zhang On 2020/6/3 2:56, Markus Elfring wrote: >> in sirfsoc_gpio_probe(), if of_find_device_by_node() succeed, >> put_device() is missing in the error handling patch. > > How do you think about another wording variant? > > A coccicheck run provided information like the following. > > drivers/pinctrl/sirf/pinctrl-sirf.c:798:2-8: ERROR: missing put_device; > call of_find_device_by_node on line 792, but without a corresponding > object release within this function. > > Generated by: scripts/coccinelle/free/put_device.cocci > > Thus add a jump target to fix the exception handling for this > function implementation. > > > Would you like to add the tag “Fixes” to the commit message? > Will do, thanks for your advise! Yu Kuai