summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorCássio Gabriel <cassiogabrielcontato@gmail.com>2026-05-01 20:45:14 +0300
committerTakashi Iwai <tiwai@suse.de>2026-05-04 14:26:23 +0300
commit359b626d362127451dbe8a687ac5c240f896ae2e (patch)
tree9daf8f53dc3c9ad1c9c4e4d8e6ab87446856a1f2 /scripts/patch-kernel
parentad39a189bfebb3de580f390bc000f9e121c6aca3 (diff)
downloadlinux-359b626d362127451dbe8a687ac5c240f896ae2e.tar.xz
ALSA: pcmtest: Return -EFAULT on pattern read copy failure
pattern_write() reports -EFAULT when copy_from_user() fails, but pattern_read() converts copy_to_user() failures into a zero-length read. That makes a userspace buffer fault look like EOF instead of reporting the actual error. Return -EFAULT from pattern_read() when copying the pattern data to userspace fails, and update the file offset only after a successful copy. Fixes: 315a3d57c64c ("ALSA: Implement the new Virtual PCM Test Driver") Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com> Link: https://patch.msgid.link/20260501-alsa-pcmtest-pattern-read-efault-v1-1-53e1e8c11dda@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions