Searched hist:"6 ec871d26977d559d1ca65f5b62ada5967bf293c" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/drivers/scmi-msg/ |
| H A D | base.c | 6ec871d26977d559d1ca65f5b62ada5967bf293c Fri Oct 31 02:33:37 UTC 2025 Govindraj Raja <govindraj.raja@arm.com> fix(scmi): fix coverity issue INTEGER_OVERFLOW
Use round_up_overflow to avoid any integer overflow from protocol count.
Thsi fixes below coverity issue -
CID 457880: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW) 4. overflow_const: Expression count - 1U, where count is known to be equal to 0, underflows the type of count - 1U, which is type unsigned int.
Change-Id: Ib55599fcb2a522e57271a6a07fb9bfd07e6953b9 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
|