summaryrefslogtreecommitdiff
path: root/drivers/core/ofnode.c
diff options
context:
space:
mode:
authorMario Six <[email protected]>2018-10-04 09:00:43 +0200
committerSimon Glass <[email protected]>2018-11-14 09:16:27 -0800
commitb6f58bfd6d2ce35360d3993be8d07e494e33021e (patch)
treec45477f9b91d463c69c7bc4328aab47f882f3e6b /drivers/core/ofnode.c
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 <[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