Re: [PATCH] staging: vme_user: fix probe error path resource handling
From: Dan Carpenter
Date: Sat Oct 31 2026 - 09:50:27 EST
On Sat, Oct 31, 2026 at 09:34:33PM +0800, linfordWu wrote:
> The probe error paths free the current master or slave resource before
> jumping to cleanup loops that free it again. They also pass NULL
> resources to the VME release helpers when window allocation fails, and
> pass a NULL buffer to vme_free_consistent() when buffer allocation
> fails.
>
> Let the common cleanup paths own all resource releases and guard the
> resource and buffer pointers so each failure path only releases objects
> that were allocated successfully.
>
> Signed-off-by: linfordWu <linfordwu@xxxxxxx>
This driver has been removed from the latest tree.
regards,
dan carpenter