Re: [PATCH] parisc: kernel: replace kfree() with put_device() in create_tree_node()

From: Helge Deller

Date: Fri Dec 19 2025 - 17:31:56 EST


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@xxxxxxxxxxxxxxx
Signed-off-by: Haoxiang Li <lihaoxiang@xxxxxxxxxxxxxxxx>
---
arch/parisc/kernel/drivers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

applied to parisc git tree.

Thanks!
Helge