Re: [PATCH] clk: stm32: Fix out-by-one error path in the index lookup

2015-07-02 Thread Stephen Boyd
On 06/28, Daniel Thompson wrote: > If stm32f4_rcc_lookup() is called with primary == 0 and secondary == 192 > then it will read beyond the end of the table array due to an out-by-one > error in the range check. > > In addition to the fixing the inequality we also modify the r.h.s. to > make it eve

Re: [PATCH] clk: stm32: Fix out-by-one error path in the index lookup

2015-06-29 Thread Maxime Coquelin
Hi Daniel, 2015-06-28 11:55 GMT+02:00 Daniel Thompson : > If stm32f4_rcc_lookup() is called with primary == 0 and secondary == 192 > then it will read beyond the end of the table array due to an out-by-one > error in the range check. > > In addition to the fixing the inequality we also modify the

[PATCH] clk: stm32: Fix out-by-one error path in the index lookup

2015-06-28 Thread Daniel Thompson
If stm32f4_rcc_lookup() is called with primary == 0 and secondary == 192 then it will read beyond the end of the table array due to an out-by-one error in the range check. In addition to the fixing the inequality we also modify the r.h.s. to make it even more explicit that we are comparing against