summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorFushuai Wang <wangfushuai@baidu.com>2025-10-07 11:26:03 +0300
committerSteve French <stfrench@microsoft.com>2025-10-09 18:42:14 +0300
commit0cc380d0e1d36b8f2703379890e90f896f68e9e8 (patch)
treef35432952980732d782248580a822b1a9c883843 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent68d2e2ca1cba9259e943bcd188671b619b9770b4 (diff)
downloadlinux-0cc380d0e1d36b8f2703379890e90f896f68e9e8.tar.xz
cifs: Fix copy_to_iter return value check
The return value of copy_to_iter() function will never be negative, it is the number of bytes copied, or zero if nothing was copied. Update the check to treat 0 as an error, and return -1 in that case. Fixes: d08089f649a0 ("cifs: Change the I/O paths to use an iterator rather than a page list") Acked-by: Tom Talpey <tom@talpey.com> Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Fushuai Wang <wangfushuai@baidu.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions