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

2018-08-02 Thread Simon Glass
On 31 July 2018 at 04:01, Mario Six 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. > >

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

2018-08-01 Thread Anatolij Gustschin
On Tue, 31 Jul 2018 12:01:01 +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 v3 04/13] regmap: Improve error handling

2018-07-31 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. Signed-off-by: Mario Six --- v2 -> v3: New in v3 ---