linux/arch/parisc
Haoxiang Li 6d2dae6b97 parisc: kernel: replace kfree() with put_device() in create_tree_node()
[ Upstream commit dcf69599c4 ]

If device_register() fails, put_device() is the correct way to
drop the device reference.

Found by code review.

Fixes: 1070c9655b ("[PA-RISC] Fix must_check warnings in drivers.c")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:54 -05:00
..
boot parisc: fix building with gcc-15 2025-06-27 11:11:22 +01:00
configs drm/display: Make DisplayPort CEC-over-AUX Kconfig name consistent 2024-03-28 11:26:47 +01:00
include Fix access to video_is_primary_device() when compiled without CONFIG_VIDEO 2025-11-13 15:34:22 -05:00
kernel parisc: kernel: replace kfree() with put_device() in create_tree_node() 2026-03-04 07:21:54 -05:00
lib parisc: Remove spurious if statement from raw_copy_from_user() 2025-10-19 16:33:52 +02:00
math-emu parisc: Fix double SIGFPE crash 2025-05-09 09:50:31 +02:00
mm parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page_fault() 2025-08-28 16:31:00 +02:00
net parisc: fix unaligned accesses in BPF 2024-07-29 16:19:07 +02:00
video arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
defpalo.conf parisc: switch to gzip-compressed vmlinuz kernel 2013-07-09 22:09:20 +02:00
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild parisc: Wire up eBPF JIT compiler 2023-08-22 10:24:47 +02:00
Kconfig parisc: Temporarily disable jump label support 2025-02-17 10:05:29 +01:00
Kconfig.debug parisc: Use page table locks only if DEBUG_KERNEL is enabled 2023-08-20 20:23:46 +02:00
Makefile parisc: Makefile: explain that 64BIT requires both 32-bit and 64-bit compilers 2025-08-28 16:31:00 +02:00