diff options
| author | Colin Ian King <[email protected]> | 2020-04-03 11:04:37 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2020-04-03 11:38:24 +0000 |
| commit | 1821b79d6a7d6973d1630e71380da8bb5e95f3a5 (patch) | |
| tree | a15925b39a3d5edf37280b1eb5312804774cd372 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | rtc: class: remove redundant assignment to variable err (diff) | |
| download | kernel-1821b79d6a7d6973d1630e71380da8bb5e95f3a5.tar.gz kernel-1821b79d6a7d6973d1630e71380da8bb5e95f3a5.zip | |
rtc: ds1307: check for failed memory allocation on wdt
Currently a failed memory allocation will lead to a null pointer
dereference on point wdt. Fix this by checking for a failed
allocation and just returning.
Addresses-Coverity: ("Dereference null return")
Fixes: fd90d48db037 ("rtc: ds1307: add support for watchdog timer on ds1388")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
