From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 943EA3AC0C2; Mon, 23 Mar 2026 13:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274072; cv=none; b=LaJJOHJkFbJUylsT91OcvUFxtQG8aXd945a1yzJAzwL07vWsC29BUv4HeMskavEaTQ5EuOJgUdN0woSZqIpN2xVHCJ/iVN7CnNTgs4CSKAFW1Kwm2vrtJd3+w7YDM0/LeAAtciYwnD6CQOlvcZDBXts1Wd1F2mo9n3Kxzb5neXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774274072; c=relaxed/simple; bh=6Le1gOzooUTdXvCb1DqLJDN0pzHiOBU2ylmEyoGhd/Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tiBdO2uu9nGHQFgb1fqjegtB8IuPZMjhIMM5Ff66ifTtCsM1NIONNTzzS+AXOnjtLr/h6cgPQokdNFT6uE3o8WtcfbQ53aIgZKD5zeTpS80fShx2zu1xu8uFnpukLaJ4Pux5UhoIaYvIXcKXrmVMHcvWLaosisew5RpqBygL6bc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KPH1QZv/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KPH1QZv/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17CAFC2BCB3; Mon, 23 Mar 2026 13:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774274072; bh=6Le1gOzooUTdXvCb1DqLJDN0pzHiOBU2ylmEyoGhd/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KPH1QZv/8z5wpKQ4s2ivOOBIXs0EHgdgIBotV/dKL0aL2kexQyT/6GAw22IXIWU0s P4xpfNnDKpvkvudex4plGTeuPMMJIypQl/RuLZ0zp1DHxL1Ps/7VbqelhXIoBgGh7E TkrZx4mKEEoZfKTSmsz5r5l9TNyznm2tbLh0VqN0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dan Carpenter , Shawn Lin , Heiko Stuebner , Sasha Levin Subject: [PATCH 6.19 100/220] soc: rockchip: grf: Add missing of_node_put() when returning Date: Mon, 23 Mar 2026 14:44:37 +0100 Message-ID: <20260323134507.760649989@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134504.575022936@linuxfoundation.org> References: <20260323134504.575022936@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shawn Lin [ Upstream commit 24ed11ee5bacf9a9aca18fc6b47667c7f38d578b ] Fix the smatch checking: drivers/soc/rockchip/grf.c:249 rockchip_grf_init() warn: inconsistent refcounting 'np->kobj.kref.refcount.refs.counter': Reported-by: Dan Carpenter Fixes: 75fb63ae0312 ("soc: rockchip: grf: Support multiple grf to be handled") Closes: https://lore.kernel.org/all/aYXvgTcUJWQL2can@stanley.mountain/ Signed-off-by: Shawn Lin Link: https://patch.msgid.link/1770814957-17762-1-git-send-email-shawn.lin@rock-chips.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- drivers/soc/rockchip/grf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c index 04937c40da471..b459607c118aa 100644 --- a/drivers/soc/rockchip/grf.c +++ b/drivers/soc/rockchip/grf.c @@ -231,6 +231,7 @@ static int __init rockchip_grf_init(void) grf = syscon_node_to_regmap(np); if (IS_ERR(grf)) { pr_err("%s: could not get grf syscon\n", __func__); + of_node_put(np); return PTR_ERR(grf); } -- 2.51.0