summaryrefslogtreecommitdiffstats
path: root/drivers/hid/i2c-hid/Makefile
diff options
context:
space:
mode:
authorAlexandre Belloni2018-05-17 22:18:58 +0200
committerAlexandre Belloni2018-05-17 22:23:18 +0200
commit661eb89a11c5f39249d8d0d50b4e538ef7bdd9d6 (patch)
tree9c759dbfa77c1ddfdd7952cd1722ee7c62813a40 /drivers/hid/i2c-hid/Makefile
parentrtc: 88pm80x: remove unused pm80x_rtc_info members (diff)
downloadkernel-qcow2-linux-661eb89a11c5f39249d8d0d50b4e538ef7bdd9d6.tar.gz
kernel-qcow2-linux-661eb89a11c5f39249d8d0d50b4e538ef7bdd9d6.tar.xz
kernel-qcow2-linux-661eb89a11c5f39249d8d0d50b4e538ef7bdd9d6.zip
rtc: 88pm80x: 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>
Diffstat (limited to 'drivers/hid/i2c-hid/Makefile')
0 files changed, 0 insertions, 0 deletions