diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-08-21 01:01:46 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-08-31 22:36:45 +0300 |
commit | 51218298a25e6942957c5595f2abf130d47d5df9 (patch) | |
tree | 235c2bc0f868679108179df74bb2b660719bda87 /drivers | |
parent | bc30658eff39c5bb562174fcf93618ab6a7afe88 (diff) | |
download | linux-51218298a25e6942957c5595f2abf130d47d5df9.tar.xz |
alarmtimer: Ensure RTC module is not unloaded
When registering the rtc device to be used to handle alarm timers,
get_device is used to ensure the device doesn't go away but the module can
still be unloaded.
Call try_module_get to ensure the rtc driver will not go away.
Reported-and-tested-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Link: http://lkml.kernel.org/r/20170820220146.30969-1-alexandre.belloni@free-electrons.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions