diff options
author | Ali Pouladi <[email protected]> | 2022-02-25 08:19:24 -0800 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2022-03-23 19:58:37 +0100 |
commit | ea6af39f3da50c86367a71eb3cc674ade3ed244c (patch) | |
tree | 9fa61c0b42103efbe1f70424b0595417ce09ba93 /lib/parser.c | |
parent | 811f5559270f25c34c338d6eaa2ece2544c3d3bd (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