Re: [PATCH] phy: stm32-usphyc: Fix off by one in probe()

From: Vinod Koul

Date: Tue Dec 23 2025 - 12:33:59 EST



On Tue, 09 Dec 2025 09:53:36 +0300, Dan Carpenter wrote:
> The "index" variable is used as an index into the usbphyc->phys[] array
> which has usbphyc->nphys elements. So if it is equal to usbphyc->nphys
> then it is one element out of bounds. The "index" comes from the
> device tree so it's data that we trust and it's unlikely to be wrong,
> however it's obviously still worth fixing the bug. Change the > to >=.
>
>
> [...]

Applied, thanks!

[1/1] phy: stm32-usphyc: Fix off by one in probe()
commit: cabd25b57216ddc132efbcc31f972baa03aad15a

Best regards,
--
~Vinod