summaryrefslogtreecommitdiff
path: root/board/sagem
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-10-04 09:00:43 +0200
committerSimon Glass <sjg@chromium.org>2018-11-14 09:16:27 -0800
commitb6f58bfd6d2ce35360d3993be8d07e494e33021e (patch)
treec45477f9b91d463c69c7bc4328aab47f882f3e6b /board/sagem
parent9b076095636b7def91ed6fd3f94383155057e962 (diff)
regmap: Improve error handling
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Reviewed-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'board/sagem')
0 files changed, 0 insertions, 0 deletions