]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: abx80x: solve race condition
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:04:47 +0000 (00:04 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:10:12 +0000 (00:10 +0200)
commit5693402394f0c9baa214a3e6805c9e54817dbf77
treeb3d8ba4e5f3f1bf14edb2f06be2b01d47e4248c9
parent17143abd9ac8312b63c591e162d0e768a08f2b3b
rtc: abx80x: solve race condition

There is a race condition that can happen if abx80x_probe() fails after the
rtc registration succeeded. Solve that by moving the registration at the
end of the probe function.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-abx80x.c