diff options
author | Stephen Boyd <[email protected]> | 2020-01-09 07:59:07 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-01-15 11:16:54 +0100 |
commit | 6b6d188aae79a630957aefd88ff5c42af6553ee3 (patch) | |
tree | 12fe809c25800e4109df5f9f13456c61e8279419 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a750c7474a5333a76e7278d353c460d26012deb6 (diff) |
alarmtimer: Unregister wakeup source when module get fails
The alarmtimer_rtc_add_device() function creates a wakeup source and then
tries to grab a module reference. If that fails the function returns early
with an error code, but fails to remove the wakeup source.
Cleanup this exit path so there is no dangling wakeup source, which is
named 'alarmtime' left allocated which will conflict with another RTC
device that may be registered later.
Fixes: 51218298a25e ("alarmtimer: Ensure RTC module is not unloaded")
Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions