Messages in this thread | | | Date | Thu, 2 Jul 2015 09:55:53 -0700 | From | Stephen Boyd <> | Subject | Re: [PATCH] clk: stm32: Fix out-by-one error path in the index lookup |
| |
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 even more explicit that we are comparing against the size of > table in bits. > > Reported-by: Dan Carpenter <dan.carpenter@oracle.com> > Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> > ---
Applied to clk-fixes
-- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
| |