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

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:09 +0200 Mario Six mario@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-zer

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

2018-08-03 Thread Mario Six
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 Reviewed-by: Simon Glas