sound: oss: midi_synth: check get_user() return value
commita98fa05b08e4226bcc1af32ee8c9ec8f1941333d
authorKulikov Vasiliy <segooon@gmail.com>
Wed, 28 Jul 2010 16:41:17 +0000 (28 20:41 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:39 +0000 (14 16:53 -0700)
treed11cffc8e6541b285f2f6cc7cbc7e564742bce53
parent0042e3362775373d95cc198100cc4e31ce09e9cc
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