Re: [PATCH 0/3] ALSA: scoped cleanup improvements for ALSA core
From: Takashi Iwai
Date: Thu Jun 04 2026 - 04:28:16 EST
On Thu, 04 Jun 2026 06:48:11 +0200,
Cássio Gabriel wrote:
>
> This series converts a few local ALSA ownership patterns
> to scoped cleanup helpers.
>
> - The first patch uses __free(kvfree) for temporary user control buffers
> in the ALSA control core.
> - The second patch promotes the existing local snd_card_unref cleanup
> helper to the common ALSA core header and uses it for temporary card
> references in the control layer.
> - The third patch applies the same idea to the temporary OSS sequencer
> MIDI use-lock reference added for embedded SysEx event lifetime handling.
>
> These are cleanup/hardening changes only. No functional change is intended.
>
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@xxxxxxxxx>
> ---
> Cássio Gabriel (3):
> ALSA: control: Use scoped cleanup for user control buffers
> ALSA: core: Add scoped cleanup helper for card references
> ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock
Applied all three patches to for-next branch. Thanks.
Takashi