Thread (3 messages) 3 messages, 3 authors, 2025-12-23

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

From: Vinod Koul <vkoul@kernel.org>
Date: 2025-12-23 17:33:59
Also in: kernel-janitors, linux-phy, lkml

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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help