sound: oss: midi_synth: check get_user() return value
commita07cadd3a6ae614a805963b6414f4c9446ce0edb
authorKulikov Vasiliy <segooon@gmail.com>
Wed, 28 Jul 2010 16:41:17 +0000 (28 20:41 +0400)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:32 +0000 (30 16:53 +0200)
treeeb9cf268250bf89ec9883e4ff50279e0472c5fe7
parent0c1681274394c0af6660393af7d4f01c8db5c3b2
sound: oss: midi_synth: check get_user() return value

commit b3390ceab95601afc12213c3ec5551d3bc7b638f upstream.

get_user() may fail, if so return -EFAULT.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/oss/midi_synth.c