diff options
| author | Takashi Iwai <tiwai@suse.de> | 2022-10-11 09:01:46 +0200 |
|---|---|---|
| committer | Alexander Grund <flamefire89@gmail.com> | 2023-11-09 19:17:23 +0100 |
| commit | 5d83531b26c159ebd3b2d689c941b3f6ebcd0eb2 (patch) | |
| tree | 1e249cd0fcd788604e5af9486a14f43bc0037659 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 1d2e8eaf169ab964769ecee9debe536ee6342eaf (diff) | |
ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free()
commit a70aef7982b012e86dfd39fbb235e76a21ae778a upstream.
The register_mutex taken around the dev_unregister callback call in
snd_rawmidi_free() may potentially lead to a mutex deadlock, when OSS
emulation and a hot unplug are involved.
Since the mutex doesn't protect the actual race (as the registration
itself is already protected by another means), let's drop it.
Link: https://lore.kernel.org/r/CAB7eexJP7w1B0mVgDF0dQ+gWor7UdkiwPczmL7pn91xx8xpzOA@mail.gmail.com
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221011070147.7611-1-tiwai@suse.de
Change-Id: I4b3461b99fb18b9cda3c39b4965dee2e59a1ba6b
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ulrich Hecht <uli+cip@fpond.eu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
