[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174722231344.74407.15426957064569052576.b4-ty@kernel.org>
Date: Wed, 14 May 2025 12:31:53 +0100
From: Vinod Koul <vkoul@...nel.org>
To: jckuo@...dia.com, kishon@...nel.org, thierry.reding@...il.com,
jonathanh@...dia.com, Ma Ke <make24@...as.ac.cn>
Cc: linux-phy@...ts.infradead.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
stable@...r.kernel.org
Subject: Re: [PATCH v2 RESEND] phy: Fix error handling in
tegra_xusb_port_init
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
Powered by blists - more mailing lists