]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: emux: stop if copy_from_user() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 31 Mar 2017 13:53:40 +0000 (16:53 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Mar 2017 14:23:52 +0000 (16:23 +0200)
commit5115e870f59e7ebe3894c1fb191b528606a601ef
tree266ff2dba40f9b0b5a79f0687df9c3d23d3ee6a7
parent240014e49492e18e494e1058b9612d8ac2a8d0ee
ALSA: emux: stop if copy_from_user() fails

If we can't fill the "patch" struct because "count" is too small (it can
be as low as 4 bytes) or because copy_from_user() failed, then just
return instead of using unintialized data.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/synth/emux/emux_oss.c