summaryrefslogtreecommitdiff
path: root/rust/kernel/irq/request.rs
diff options
context:
space:
mode:
authorFushuai Wang <wangfushuai@baidu.com>2025-10-07 16:26:03 +0800
committerSteve French <stfrench@microsoft.com>2025-10-09 10:42:14 -0500
commit0cc380d0e1d36b8f2703379890e90f896f68e9e8 (patch)
treef35432952980732d782248580a822b1a9c883843 /rust/kernel/irq/request.rs
parent68d2e2ca1cba9259e943bcd188671b619b9770b4 (diff)
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 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions