diff options
author | 2025-03-03 23:35:57 +0100 | |
---|---|---|
committer | 2025-03-17 11:51:49 +0100 | |
commit | 252f49cd71ba9d66089b447a18be792ea272a57e (patch) | |
tree | 0a89c5465946489b992fdfe4191ba51e18c0510a /net/lapb/lapb_timer.c | |
parent | rtc: mpfs: switch to devm_device_init_wakeup (diff) | |
download | wireguard-linux-252f49cd71ba9d66089b447a18be792ea272a57e.tar.xz wireguard-linux-252f49cd71ba9d66089b447a18be792ea272a57e.zip |
rtc: pm8xxx: fix possible race condition
probe must not fail after devm_rtc_register_device is successful because
the character device will be seen by userspace and may be opened right
away. Call it last to avoid opening the race window.
Link: https://lore.kernel.org/r/20250303223600.1135142-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions