aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/rtc/rtc-sun6i.c
diff options
context:
space:
mode:
authorAli Pouladi <quic_apouladi@quicinc.com>2022-02-25 08:19:24 -0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-03-23 19:58:37 +0100
commitea6af39f3da50c86367a71eb3cc674ade3ed244c (patch)
tree9fa61c0b42103efbe1f70424b0595417ce09ba93 /drivers/rtc/rtc-sun6i.c
parentrtc: mc146818-lib: fix locking in mc146818_set_time (diff)
downloadwireguard-linux-ea6af39f3da50c86367a71eb3cc674ade3ed244c.tar.xz
wireguard-linux-ea6af39f3da50c86367a71eb3cc674ade3ed244c.zip
rtc: pl031: fix rtc features null pointer dereference
When there is no interrupt line, rtc alarm feature is disabled. The clearing of the alarm feature bit was being done prior to allocations of ldata->rtc device, resulting in a null pointer dereference. Clear RTC_FEATURE_ALARM after the rtc device is allocated. Fixes: d9b0dd54a194 ("rtc: pl031: use RTC_FEATURE_ALARM") Cc: stable@vger.kernel.org Signed-off-by: Ali Pouladi <quic_apouladi@quicinc.com> Signed-off-by: Elliot Berman <quic_eberman@quicinc.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220225161924.274141-1-quic_eberman@quicinc.com
Diffstat (limited to 'drivers/rtc/rtc-sun6i.c')
0 files changed, 0 insertions, 0 deletions