Re: [PATCH] ALSA: seq: midi: Serialize output teardown with event_input

From: Cen Zhang

Date: Wed May 27 2026 - 02:24:10 EST


Hi Takashi,

> Please use scoped_guard(). You can drop flags with it, and the return
> -ENODEV can be right after substream assignment.
> Same here, too.

Thanks for your review. I will keep the lifetime fix unchanged and
only updated the
short output_lock sections to use scoped_guard(spinlock_irqsave, ...), so
the explicit flags variable is gone as suggested.

I'll send v2 with that change.

Best regards,
Zhang Cen