sound: oss: midi_synth: check get_user() return value
commit38a4189d5c25a817018416dee94b52bd9be2e7c5
authorKulikov Vasiliy <segooon@gmail.com>
Wed, 28 Jul 2010 16:41:17 +0000 (28 20:41 +0400)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:20:59 +0000 (28 08:20 -0700)
tree3af9909346b60847e0796bcf4e473bc23cd07934
parent95e07fd5a69dd641592cba4f225e898c441dca6b
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
sound/oss/midi_synth.c