mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +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 |