summaryrefslogtreecommitdiff
path: root/scripts/file-size.sh
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-06 04:01:44 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-16 13:12:09 +0300
commitf2997775b111c6d660c32a18d5d44d37cb7361b1 (patch)
tree3deabb27fff17fee84aadab8dbd2bdc4d5a73efc /scripts/file-size.sh
parent0a22bd6fe46db507b4e9d3ea2db3dc8ed480b0b3 (diff)
downloadlinux-f2997775b111c6d660c32a18d5d44d37cb7361b1.tar.xz
rtc: sa1100: fix possible race condition
Both RTC IRQs are requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in the IRQ handler. To fix this issue, allocating the rtc_device struct before requesting the IRQs using devm_rtc_allocate_device, and use rtc_register_device to register the RTC device. Link: https://lore.kernel.org/r/20200306010146.39762-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'scripts/file-size.sh')
0 files changed, 0 insertions, 0 deletions