summaryrefslogtreecommitdiffstats
path: root/block/blk-timeout.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-06-04 14:05:40 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-06-04 14:36:14 +0200
commit29615d03ccc0f8f01b45178737600810d8bf971f (patch)
tree5eeb0fd992473e03dc6a711c8b8e1bf30a9d543c /block/blk-timeout.c
parent696fa1d043ecd605166cc97b24c0b7a59dd5a135 (diff)
downloadlinux-29615d03ccc0f8f01b45178737600810d8bf971f.tar.bz2
rtc: sunxi: fix possible race condition
The IRQ is requested before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. This may lead to a NULL pointer dereference. Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc before requesting the IRQ. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'block/blk-timeout.c')
0 files changed, 0 insertions, 0 deletions