[PATCH v2 RESEND] phy: Fix error handling in tegra_xusb_port_init
Vinod Koul
vkoul at kernel.org
Wed May 14 04:31:53 PDT 2025
On Mon, 03 Mar 2025 15:27:39 +0800, Ma Ke wrote:
> If device_add() fails, do not use device_unregister() for error
> handling. device_unregister() consists two functions: device_del() and
> put_device(). device_unregister() should only be called after
> device_add() succeeded because device_del() undoes what device_add()
> does if successful. Change device_unregister() to put_device() call
> before returning from the function.
>
> [...]
Applied, thanks!
[1/1] phy: Fix error handling in tegra_xusb_port_init
commit: b2ea5f49580c0762d17d80d8083cb89bc3acf74f
Best regards,
--
~Vinod
More information about the linux-phy
mailing list