OSDN Git Service

sound: oss: midibuf: fix sleep_on races
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Jan 2014 12:07:48 +0000 (13:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jan 2014 15:11:44 +0000 (16:11 +0100)
commit76439c2ac686c547ca2f53bfe964c100e697ff4a
tree150ef40cb55992118fc5aa52cae5ace82c3e9608
parent7bd6972a921e148beea54919a00aa7b0bf046ff1
sound: oss: midibuf: fix sleep_on races

sleep_on is known to be racy and going away because of this. All instances
of interruptible_sleep_on and interruptible_sleep_on_timeout in the midibuf
driver can trivially be replaced with wait_event_interruptible and
wait_event_interruptible_timeout.

[fixed coding style warnings by tiwai]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/midibuf.c