ALSA: rawmidi - Fix possible race in open
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2009 13:55:59 +0000 (14:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Mar 2009 14:17:21 +0000 (15:17 +0100)
commitf9d202833d0beac09ef1c6a41305151da4fe5d4c
tree4bd6b75853a5bad34fb17d95afa33b1e3f4997bb
parentfec6c6fec3e20637bee5d276fb61dd8b49a3f9cc
ALSA: rawmidi - Fix possible race in open

The module refcount should be handled in the register_mutex to avoid
possible races with module unloading.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/rawmidi.c