From: Helge Deller <deller@gmx.de>
To: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>,
James.Bottomley@HansenPartnership.com, willy@infradead.org
Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] parisc: kernel: replace kfree() with put_device() in create_tree_node()
Date: Fri, 19 Dec 2025 23:31:51 +0100 [thread overview]
Message-ID: <d31d2814-4c3e-48e9-b0cc-e8a11d55d4f9@gmx.de> (raw)
In-Reply-To: <20251219131926.623330-1-lihaoxiang@isrc.iscas.ac.cn>
On 12/19/25 14:19, Haoxiang Li wrote:
> If device_register() fails, put_device() is the correct way to
> drop the device reference.
>
> Found by code review.
>
> Fixes: 1070c9655b90 ("[PA-RISC] Fix must_check warnings in drivers.c")
> Cc: stable@vger.kernel.org
> Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
> ---
> arch/parisc/kernel/drivers.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied to parisc git tree.
Thanks!
Helge
prev parent reply other threads:[~2025-12-19 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 13:19 [PATCH] parisc: kernel: replace kfree() with put_device() in create_tree_node() Haoxiang Li
2025-12-19 22:31 ` Helge Deller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d31d2814-4c3e-48e9-b0cc-e8a11d55d4f9@gmx.de \
--to=deller@gmx.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=lihaoxiang@isrc.iscas.ac.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox