Files
linux/drivers/rtc
Alexandre Belloni f70cc33029 rtc: fix RTC removal
Since the rtc_register_device, removing an RTC device will end with a
refcount_t: underflow; use-after-free warning since put_device is called
twice in the device tear down path.

Fixes: fdcfd85433 ("rtc: rework rtc_register_device() resource management")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20201205231449.610980-1-alexandre.belloni@bootlin.com
2020-12-16 00:33:33 +01:00
..
2020-12-16 00:33:33 +01:00
2020-12-03 23:42:36 +01:00
2020-11-19 12:52:25 +01:00
2020-11-17 20:30:30 +01:00
2020-12-03 23:43:23 +01:00