aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Smith <tim@electronghost.co.uk>2014-01-26 06:39:31 -0500
committerDavid Howells <dhowells@redhat.com>2014-01-26 06:45:04 -0500
commit1ea427359dde1573815e19c411ce08fdf0c42cfe (patch)
treedc194ef6de1b1ca893cb308de331f044c381c840
parent24a9981ee9c7266fa171bbece62062bf78c4d246 (diff)
af_rxrpc: Handle frames delivered from another VM
On input, CHECKSUM_PARTIAL should be treated the same way as CHECKSUM_UNNECESSARY. See include/linux/skbuff.h Signed-off-by: Tim Smith <tim@electronghost.co.uk> Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--net/rxrpc/ar-recvmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/ar-recvmsg.c b/net/rxrpc/ar-recvmsg.c
index 64cba2e35156..34b5490dde65 100644
--- a/net/rxrpc/ar-recvmsg.c
+++ b/net/rxrpc/ar-recvmsg.c
@@ -180,7 +180,8 @@ int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock,
180 if (copy > len - copied) 180 if (copy > len - copied)
181 copy = len - copied; 181 copy = len - copied;
182 182
183 if (skb->ip_summed == CHECKSUM_UNNECESSARY) { 183 if (skb->ip_summed == CHECKSUM_UNNECESSARY ||
184 skb->ip_summed == CHECKSUM_PARTIAL) {
184 ret = skb_copy_datagram_iovec(skb, offset, 185 ret = skb_copy_datagram_iovec(skb, offset,
185 msg->msg_iov, copy); 186 msg->msg_iov, copy);
186 } else { 187 } else {