]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock
authorCássio Gabriel <cassiogabrielcontato@gmail.com>
Thu, 4 Jun 2026 04:48:14 +0000 (01:48 -0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Jun 2026 08:20:41 +0000 (10:20 +0200)
commit64917f839d373df2573eb47f271df98f1daef7fa
treeb312aacfbb4db86dfd4a957f26701b2d0067dc62
parentc6c6f0aec6fb4cbcc547bb265315fd76f18be731
ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock

The OSS sequencer write and out-of-band paths may receive a temporary
snd_use_lock_t reference from snd_seq_oss_process_event(). This was added
to keep MIDI device data alive until events with embedded SysEx data are
dispatched.

Use a scoped cleanup helper for that temporary reference. This keeps the
lifetime rule local to the variable declaration and avoids future missing
snd_use_lock_free() paths if these event handling paths gain more exits.

No functional change is intended.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260604-alsa-scoped-cleanups-v1-3-10c43152a728@gmail.com
sound/core/seq/oss/seq_oss_event.h
sound/core/seq/oss/seq_oss_ioctl.c
sound/core/seq/oss/seq_oss_rw.c