mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-17 21:56:49 +07:00
![]() [ Upstream commit f6b1340dc751a6caa2a0567b667d0f4f4172cd58 ]
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 |