commit | 1232116eaf3489dcbf020ec10c88d6221526b02f | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Thu Oct 04 09:00:43 2018 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Nov 14 09:16:27 2018 -0800 |
tree | c45477f9b91d463c69c7bc4328aab47f882f3e6b | |
parent | 0aa5299227ef9e05a9d0729feca9bf5a315b5899 [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>