diff options
| author | Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn> | 2025-12-19 21:19:26 +0800 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-02-07 00:45:18 +0100 |
| commit | dcf69599c47f29ce0a99117eb3f9ddcd2c4e78b6 (patch) | |
| tree | a1bb49134f6a5bda398a73b3e51113f61a681e29 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff) | |
parisc: kernel: replace kfree() with put_device() in create_tree_node()
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>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
