diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-06-22 22:02:02 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-06-22 22:33:24 +0300 |
commit | 0f7c956533680d5c905d256044d7b23f180dc230 (patch) | |
tree | ea3433099990b84ef20e909b9f8ef44bf02993a8 /sound/usb/mixer_scarlett_gen2.c | |
parent | 8c13212443230d03ff25014514ec0d53498c0912 (diff) | |
download | linux-0f7c956533680d5c905d256044d7b23f180dc230.tar.xz |
ALSA: hdsp: fix a test for copy_to_user() failure
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@oracle.com>
Link: https://lore.kernel.org/r/YNIzqpVR6L2t/RwJ@mwanda
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer_scarlett_gen2.c')
0 files changed, 0 insertions, 0 deletions