diff options
author | Pan Bian <bianpan2016@163.com> | 2017-04-23 14:48:07 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-05-05 00:43:52 +0200 |
commit | 332e0d13d3c7d1e4394a513585a3d3b15a0030b8 (patch) | |
tree | 66080a3ed68c4ac691b964ce4a9f1bd43861f466 /Documentation | |
parent | rtc: snvs: fix an incorrect check of return value (diff) | |
download | linux-332e0d13d3c7d1e4394a513585a3d3b15a0030b8.tar.xz linux-332e0d13d3c7d1e4394a513585a3d3b15a0030b8.zip |
rtc: gemini: add return value validation
Function devm_ioremap() will return a NULL pointer if it fails to remap
IO address, and its return value should be validated before it is used.
However, in function gemini_rtc_probe(), its return value is not
checked. This may result in bad memory access bugs on future access,
e.g. calling the function gemini_rtc_read_time().
Signed-off-by: Pan Bian <bianpan2016@163.com>
Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions