2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00

datapath: Fix warning on 64-bit builds.

This commit is contained in:
Ben Pfaff
2009-10-12 10:34:38 -07:00
parent 7c40efc9d3
commit 1b378b99f6

View File

@@ -1561,7 +1561,7 @@ ssize_t openvswitch_read(struct file *f, char __user *buf, size_t nbytes,
}
}
success:
copy_bytes = min(skb->len, nbytes);
copy_bytes = min_t(size_t, skb->len, nbytes);
iov.iov_base = buf;
iov.iov_len = copy_bytes;
retval = skb_copy_datagram_iovec(skb, 0, &iov, iov.iov_len);