af_rxrpc: Handle frames delivered from another VM
authorTim Smith <tim@electronghost.co.uk>
Sun, 26 Jan 2014 11:39:31 +0000 (11:39 +0000)
committerDavid Howells <dhowells@redhat.com>
Sun, 26 Jan 2014 11:45:04 +0000 (11:45 +0000)
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>
net/rxrpc/ar-recvmsg.c

index 64cba2e35156adaa23ec24c5fb67657136172945..34b5490dde655ccdbac5dcbbc7b0df1b88ab42ca 100644 (file)
@@ -180,7 +180,8 @@ int rxrpc_recvmsg(struct kiocb *iocb, struct socket *sock,
                if (copy > len - copied)
                        copy = len - copied;
 
-               if (skb->ip_summed == CHECKSUM_UNNECESSARY) {
+               if (skb->ip_summed == CHECKSUM_UNNECESSARY ||
+                   skb->ip_summed == CHECKSUM_PARTIAL) {
                        ret = skb_copy_datagram_iovec(skb, offset,
                                                      msg->msg_iov, copy);
                } else {