Re: [PATCH] staging: vme_user: fix crcsr_bus assignment on allocation failure

From: Dan Carpenter

Date: Wed Oct 21 2026 - 01:57:23 EST


On Wed, Oct 21, 2026 at 11:02:22AM +0800, LiuJunyuan wrote:
> Assign bridge->crcsr_bus only after bridge->crcsr_kernel has been
> successfully allocated.
>
> Signed-off-by: LiuJunyuan <2058432396@xxxxxx>

The original code is done intentionally. I'm not sure if the
new version introduces a bug because I haven't looked at the
surrounding code.

regards,
dan carpenter