Re: [PATCH v2 2/2] most: usb: remove double cleanup of interface on registration failure

From: Abdun Nihaal

Date: Wed Nov 26 2025 - 12:31:46 EST


On Tue, Nov 25, 2025 at 10:56:06PM +0000, Navaneeth K wrote:
> Since most_register_interface() now correctly handles cleanup (calling
> put_device on failure), the manual cleanup in hdm_probe() would cause
> a double-free.
>
> Remove the manual cleanup labels and return the error code directly.

This exact change has already been done by Johan Hovold in the following
patch: https://lore.kernel.org/all/20251029093029.28922-1-johan@xxxxxxxxxx/

I find that patch in Linux-next. It must have been already applied.
and so you can drop this patch.

Regards,
Nihaal