]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: ohci-nxp: fix device leak on probe failure
authorJohan Hovold <johan@kernel.org>
Thu, 18 Dec 2025 15:35:17 +0000 (16:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:17 +0000 (10:14 +0100)
commitc062deb480f5f18d0a89d919c3fb6ce0e60894d3
tree001f379d64d0af928fbaadf88f070db86b274649
parent2a38605427f255fa5aba31904c7548daf6c2c903
usb: ohci-nxp: fix device leak on probe failure

commit b4c61e542faf8c9131d69ecfc3ad6de96d1b2ab8 upstream.

Make sure to drop the reference taken when looking up the PHY I2C device
during probe on probe failure (e.g. probe deferral) and on driver
unbind.

Fixes: 73108aa90cbf ("USB: ohci-nxp: Use isp1301 driver")
Cc: stable@vger.kernel.org # 3.5
Reported-by: Ma Ke <make24@iscas.ac.cn>
Link: https://lore.kernel.org/lkml/20251117013428.21840-1-make24@iscas.ac.cn/
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://patch.msgid.link/20251218153519.19453-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-nxp.c