[alsa-devel] [PATCH] ALSA: emux: stop if copy_from_user() fails

Takashi Iwai tiwai at suse.de
Fri Mar 31 16:24:07 CEST 2017


On Fri, 31 Mar 2017 15:53:40 +0200,
Dan Carpenter wrote:
> 
> 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 at oracle.com>

Thanks, applied now.


Takashi


More information about the Alsa-devel mailing list