diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-23 11:21:37 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-23 11:21:37 +0100 |
| commit | 3282f1c427e18feb61774c37a034fbb3622177b4 (patch) | |
| tree | 109d5873614af7741ae06b968bd5f253ef39c613 /drivers/phy/st | |
| parent | 0d579622a3b0bb76742ffa8becc103fe35934dca (diff) | |
| parent | 5dfbc5357c34bdf81c84aa78bc8e3d6d9ba10aad (diff) | |
Merge v6.18.7linux-rolling-stable
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy/st')
| -rw-r--r-- | drivers/phy/st/phy-stm32-usbphyc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c index 27fe92f73f33..b44afbff8616 100644 --- a/drivers/phy/st/phy-stm32-usbphyc.c +++ b/drivers/phy/st/phy-stm32-usbphyc.c @@ -712,7 +712,7 @@ static int stm32_usbphyc_probe(struct platform_device *pdev) } ret = of_property_read_u32(child, "reg", &index); - if (ret || index > usbphyc->nphys) { + if (ret || index >= usbphyc->nphys) { dev_err(&phy->dev, "invalid reg property: %d\n", ret); if (!ret) ret = -EINVAL; |
