mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
6acb47d1a3
Currently, there is an out-of-bounds read on array ctrl->phys,
once variable i reaches the maximum array size of SERDES_MAX
in the for loop.
Fix this by changing the condition in the for loop from
i <= SERDES_MAX to i < SERDES_MAX.
Addresses-Coverity-ID: 1473966 ("Out-of-bounds read")
Addresses-Coverity-ID: 1473959 ("Out-of-bounds read")
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
phy-ocelot-serdes.c |