diff options
| author | Mario Six <[email protected]> | 2018-10-04 09:00:43 +0200 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2018-11-14 09:16:27 -0800 |
| commit | b6f58bfd6d2ce35360d3993be8d07e494e33021e (patch) | |
| tree | c45477f9b91d463c69c7bc4328aab47f882f3e6b /drivers/core/ofnode.c | |
| parent | 9b076095636b7def91ed6fd3f94383155057e962 (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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Mario Six <[email protected]>
Diffstat (limited to 'drivers/core/ofnode.c')
0 files changed, 0 insertions, 0 deletions
