summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMyeonghun Pak <mhun512@gmail.com>2026-06-23 17:55:55 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-17 16:22:57 +0200
commite7e12b4cc0f0c3a2782aea084d4215e23f5512b3 (patch)
treeba96dc19ad32c757c8e3460c9fc0b456e47567ab /tools/perf/scripts/python/bin/stackcollapse-record
parentf5af7132db239c5d13f20b7ac01db62b62830fb1 (diff)
char: xilinx_hwicap: unregister class on init errors
hwicap_module_init() registers icap_class before reserving the character-device region and registering the platform driver. If either of those later steps fails, the init path must undo the successful class registration before returning an error. Route the chrdev registration failure through a class unwind label, and let the platform-driver registration failure fall through the existing chrdev unwind before unregistering the class. The normal module exit path is unchanged. This issue was identified during our ongoing static-analysis research while reviewing kernel code. Fixes: ef141a0bb0dc ("[POWERPC] Xilinx: hwicap driver") Co-developed-by: Ijae Kim <ae878000@gmail.com> Signed-off-by: Ijae Kim <ae878000@gmail.com> Signed-off-by: Myeonghun Pak <mhun512@gmail.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Link: https://patch.msgid.link/20260623085604.89284-1-mhun512@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions