[PATCH] ALSA: hdsp: fix a test for copy_to_user() failure

Takashi Iwai tiwai at suse.de
Tue Jun 22 21:33:46 CEST 2021


On Tue, 22 Jun 2021 21:02:02 +0200,
Dan Carpenter wrote:
> 
> The copy_to_user() function returns the number of bytes remaining to be
> copied.  It doesn't return negatives.
> 
> Fixes: 66c8f75919dd ("ALSA: hdsp: Fix assignment in if condition")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Thanks, applied.


Takashi


More information about the Alsa-devel mailing list