]> git.baikalelectronics.ru Git - kernel.git/commit
socket: do a generic_file_splice_read when proto_ops has no splice_read
authorSlavomir Kaslev <kaslevs@vmware.com>
Fri, 16 Nov 2018 09:27:53 +0000 (11:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:34:11 +0000 (21:34 -0800)
commitaa56042488d7923883c07837dff38f13901f05ca
treefc99cbe4f4da3a1eee2583d4b63b10010e87e6fa
parentd6e54adb5cc2226324670dffdc6ce826fb6f676b
socket: do a generic_file_splice_read when proto_ops has no splice_read

splice(2) fails with -EINVAL when called reading on a socket with no splice_read
set in its proto_ops (such as vsock sockets). Switch this to fallbacks to a
generic_file_splice_read instead.

Signed-off-by: Slavomir Kaslev <kaslevs@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c