diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-06 08:34:01 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-16 11:12:10 +0100 |
commit | c11af8131a4e7ba1960faed731ee7e84c2c13c94 (patch) | |
tree | ac8645196ed47c8c7c8cfe718a53449bfe004c5a /sound/pci/ice1712/prodigy_hifi.c | |
parent | d238df15e5cdfae54688ed9c1b33e19ed747dcda (diff) |
rtc: ds1374: fix possible race condition
The RTC IRQ is 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 RTC IRQ using devm_rtc_allocate_device, and use rtc_register_device
to register the RTC device.
Link: https://lore.kernel.org/r/20200306073404.56921-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'sound/pci/ice1712/prodigy_hifi.c')
0 files changed, 0 insertions, 0 deletions