diff options
author | Jason Wang <jasowang@redhat.com> | 2012-05-02 11:42:06 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:30:34 -0700 |
commit | 2b3c7134014a200279e7ed31716e528cd009dfb0 (patch) | |
tree | 30a9e2d5971f14b0d99c335c116a70850f441c9c /lib/dynamic_debug.c | |
parent | 61f26eb401b04a9312c422a5dcc7436246f37b58 (diff) |
macvtap: zerocopy: set SKBTX_DEV_ZEROCOPY only when skb is built successfully
commit 01d6657b388438def19c8baaea28e742b6ed32ec upstream.
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>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions