summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2014-11-13 16:54:14 +0800
committerDavid S. Miller <davem@davemloft.net>2014-11-13 14:33:22 -0500
commit8c847d254146d32c86574a1b16923ff91bb784dd (patch)
tree5c6634687b9833a81cef836f88e466bc267126e9 /drivers/scsi/cxgbi
parent882288c05ede954e797baa623062f5ea06663ae1 (diff)
downloadop-kernel-dev-8c847d254146d32c86574a1b16923ff91bb784dd.zip
op-kernel-dev-8c847d254146d32c86574a1b16923ff91bb784dd.tar.gz
tun: fix issues of iovec iterators using in tun_put_user()
This patch fixes two issues after using iovec iterators: - vlan_offset should be initialized to zero, otherwise unexpected offset will be used in skb_copy_datagram_iter() - advance iovec iterator when vnet_hdr_sz is greater than sizeof(gso), this is the case when mergeable rx buffer were enabled for a virt guest. Fixes e0b46d0ee9c240c7430a47e9b0365674d4a04522 ("tun: Use iovec iterators") Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud