[U-Boot] [PATCH v3 04/13] regmap: Improve error handling

Anatolij Gustschin agust at denx.de
Wed Aug 1 21:26:00 UTC 2018


On Tue, 31 Jul 2018 12:01:01 +0200
Mario Six mario.six at gdsys.cc wrote:

> 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.
> 
> Signed-off-by: Mario Six <mario.six at gdsys.cc>

Reviewed-by: Anatolij Gustschin <agust at denx.de>


More information about the U-Boot mailing list