Re: [PATCH] staging: most: dim2: fix missing cleanup on interface registration failure
From: Greg KH
Date: Wed Nov 26 2025 - 06:32:55 EST
On Tue, Nov 25, 2025 at 09:36:16PM +0530, Navaneeth K wrote:
> Hi Nihaal,
> Thank you for the detailed explanation.
> That makes perfect sense. I wasn’t aware that most_register_interface()
> is intended to handle cleanup via the dev.release path even on failure.
> I will analyze most_register_interface() and prepare a follow-up patch
> to address the inconsistency in the early error paths where put_device()
> is missing, as you suggested.
>
> Greg, since this version of the patch would introduce a double-free,
> could you please drop it from staging-testing?
Ok, will go drop it now, thanks.
greg k-h