commit | 5885615e44faebaf379fa0cdd2b9c084960dae38 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Mar 31 16:53:40 2017 +0300 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Mar 31 16:23:52 2017 +0200 |
tree | 266ff2dba40f9b0b5a79f0687df9c3d23d3ee6a7 | |
parent | 03a1f48e5371a252b3b8c16a7cbea3c0bd8689bb [diff] |
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>