Re: [PATCH][V2] clk: uniphier: Fix potential infinite loop

2021-04-12 Thread Stephen Boyd
Quoting Colin King (2021-04-09 02:01:04) > From: Colin Ian King > > The for-loop iterates with a u8 loop counter i and compares this > with the loop upper limit of num_parents that is an int type. > There is a potential infinite loop if num_parents is larger than > the u8 loop counter. Fix this

Re: [PATCH][V2] clk: uniphier: Fix potential infinite loop

2021-04-09 Thread Masahiro Yamada
On Fri, Apr 9, 2021 at 6:01 PM Colin King wrote: > > From: Colin Ian King > > The for-loop iterates with a u8 loop counter i and compares this > with the loop upper limit of num_parents that is an int type. > There is a potential infinite loop if num_parents is larger than > the u8 loop counter.