Jason Wang 01d6657b38 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>
2012-05-02 18:22:20 +03:00
..
2012-04-12 15:36:33 -07:00
2012-03-27 16:03:32 -07:00
2012-04-21 01:58:20 -04:00
2012-04-18 11:15:50 -07:00
2012-04-12 15:10:44 -04:00
2012-03-30 00:09:17 -07:00
2012-04-21 12:45:52 -07:00
2012-04-18 13:15:51 -07:00
2012-03-29 18:02:10 -07:00
2012-04-19 15:12:49 -04:00