[PATCH AUTOSEL for 4.14 35/67] rtc: ac100: Fix multiple race conditions

2018-03-07 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit 994ec64c0a193940be7a6fd074668b9446d3b6c3 ] The probe function is not allowed to fail after registering the RTC because the following may happen: CPU0:CPU1: sys_load_module()

[PATCH AUTOSEL for 4.14 35/67] rtc: ac100: Fix multiple race conditions

2018-03-07 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit 994ec64c0a193940be7a6fd074668b9446d3b6c3 ] The probe function is not allowed to fail after registering the RTC because the following may happen: CPU0:CPU1: sys_load_module() do_init_module() do_one_initcall()