mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
f6b1340dc7
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 by making the loop counter the same
type as num_parents. Also make num_parents an unsigned int to
match the return type of the call to clk_hw_get_num_parents.
Addresses-Coverity: ("Infinite loop")
Fixes:
|
||
---|---|---|
.. | ||
clk-uniphier-core.c | ||
clk-uniphier-cpugear.c | ||
clk-uniphier-fixed-factor.c | ||
clk-uniphier-fixed-rate.c | ||
clk-uniphier-gate.c | ||
clk-uniphier-mio.c | ||
clk-uniphier-mux.c | ||
clk-uniphier-peri.c | ||
clk-uniphier-sys.c | ||
clk-uniphier.h | ||
Kconfig | ||
Makefile |