commit | 5268c76832cb46a9c0c69e675803e2e214408ebe | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Wed May 02 11:42:06 2012 +0800 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed May 02 18:09:25 2012 +0300 |
tree | 69d3ff17833a9e4f9ac07cb86edb6b1d4fecd812 | |
parent | 243245099b31a610852d3fc849c3bcb7860fd7f5 [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>