]> 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>
Tue, 23 Dec 2025 14:48:46 +0000 (15:48 +0100)
commitb4c61e542faf8c9131d69ecfc3ad6de96d1b2ab8
treef134a8fa076aa4bc076a5c40818b1b7a61741302
parentb4b64fda4d30a83a7f00e92a0c8a1d47699609f3
usb: ohci-nxp: fix device leak on probe failure

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