Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macvtap: zerocopy: set SKBTX_DEV_ZEROCOPY only when skb is built succ…
…essfully 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>
- Loading branch information