aboutsummaryrefslogtreecommitdiff
path: root/scripts/selinux/genheaders/genheaders.c
diff options
context:
space:
mode:
authorDaniel Thompson <[email protected]>2015-06-28 10:55:32 +0100
committerStephen Boyd <[email protected]>2015-07-02 09:51:26 -0700
commit15ab38273d21a45487116ad4c428593427954848 (patch)
tree2a96fa167916c61250de1400736a7e3523f7226b /scripts/selinux/genheaders/genheaders.c
parent69916d96094e1e16567c5f25515a13ed2896c730 (diff)
clk: stm32: Fix out-by-one error path in the index lookup
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 <[email protected]> Signed-off-by: Daniel Thompson <[email protected]> Acked-by: Maxime Coquelin <[email protected]> Fixes: 358bdf892f6b ("clk: stm32: Add clock driver for STM32F4[23]xxx devices") Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/selinux/genheaders/genheaders.c')
0 files changed, 0 insertions, 0 deletions