Home
last modified time | relevance | path

Searched hist:e14ebde5 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/core/
H A Dpcm_lib.ce14ebde5 Sat Sep 02 01:10:43 CDT 2023 Takashi Iwai <tiwai@suse.de> ALSA: pcm: Fix error checks of default read/write copy ops

copy_from/to_iter() returns the actually copied bytes, and the more
correct check should be to compare with the given bytes, instead of
zero-check.

Fixes: cf393babb37a ("ALSA: pcm: Add copy ops with iov_iter")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Closes: https://lore.kernel.org/r/20230902053044.GJ3390869@ZenIV
Link: https://lore.kernel.org/r/20230902061044.19366-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>