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

Simon Glass sjg at chromium.org
Thu Aug 2 16:56:43 UTC 2018


On 31 July 2018 at 04:01, 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>
> ---
>
> v2 -> v3:
> New in v3
>
> ---
>  drivers/core/regmap.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list