summaryrefslogtreecommitdiffstats
path: root/include/linux/uio.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2012-05-02 11:42:06 +0800
committerMichael S. Tsirkin <mst@redhat.com>2012-05-02 18:22:20 +0300
commit01d6657b388438def19c8baaea28e742b6ed32ec (patch)
tree7979049df013d023baa9f1a9ae7aa85e350e937c /include/linux/uio.h
parent02ce04bb3d28c3333231f43bca677228dbc686fe (diff)
macvtap: zerocopy: set SKBTX_DEV_ZEROCOPY only when skb is built successfully
Current the SKBTX_DEV_ZEROCOPY is set unconditionally after zerocopy_sg_from_iovec(), this would lead NULL pointer when macvtap fails to build zerocopy skb because destructor_arg was not initialized. Solve this by set this flag after the skb were built successfully. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/uio.h')
0 files changed, 0 insertions, 0 deletions