aboutsummaryrefslogtreecommitdiff
path: root/lib/parser.c
diff options
context:
space:
mode:
authorAli Pouladi <[email protected]>2022-02-25 08:19:24 -0800
committerAlexandre Belloni <[email protected]>2022-03-23 19:58:37 +0100
commitea6af39f3da50c86367a71eb3cc674ade3ed244c (patch)
tree9fa61c0b42103efbe1f70424b0595417ce09ba93 /lib/parser.c
parent811f5559270f25c34c338d6eaa2ece2544c3d3bd (diff)
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: [email protected] Signed-off-by: Ali Pouladi <[email protected]> Signed-off-by: Elliot Berman <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions