diff options
| author | Yuho Choi <dbgh9129@gmail.com> | 2026-07-02 17:57:33 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-07-07 23:26:58 +0200 |
| commit | 3dee6537e728bd8137fda6eaf859f26e685943f7 (patch) | |
| tree | 7a547c56aae190f2d1c7c7c80d31a581ee1775e9 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | b4b66151a71445f3a71574136ddc82968c7b175e (diff) | |
clocksource: Unregister subsystem on device registration failure
init_clocksource_sysfs() registers the clocksource subsystem before
registering the clocksource device. If device_register() fails, the
function returns the error while leaving the subsystem registered.
Unregister the clocksource subsystem on that failure path so the
successful subsystem registration is unwound before returning.
Fixes: d369a5d8fc70 ("clocksource: convert sysdev_class to a regular subsystem")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260702215733.84588-1-dbgh9129@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
