Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALSA: seq: oss: Fix unbalanced use lock for synth MIDI device
When get_synthdev() is called for a MIDI device, it returns the fixed midi_synth_dev without the use refcounting. OTOH, the caller is supposed to unreference unconditionally after the usage, so this would lead to unbalanced refcount. This patch corrects the behavior and keep up the refcount balance also for the MIDI synth device. Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
- Loading branch information