aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/dsa.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2016-11-30 05:17:52 +0000
committerDavid S. Miller <[email protected]>2016-11-30 20:06:02 +0000
commitaa196eed3d80d4b003b04a270712b978a012a939 (patch)
tree73db65b94d0c8607ba2088178b6f00fa51bcc920 /net/dsa/dsa.c
parenttun: handle ubuf refcount correctly when meet errors (diff)
downloadkernel-aa196eed3d80d4b003b04a270712b978a012a939.tar.gz
kernel-aa196eed3d80d4b003b04a270712b978a012a939.zip
macvtap: handle ubuf refcount correctly when meet errors
We trigger uarg->callback() immediately after we decide do datacopy even if caller want to do zerocopy. This will cause the callback (vhost_net_zerocopy_callback) decrease the refcount. But when we meet an error afterwards, the error handling in vhost handle_tx() will try to decrease it again. This is wrong and fix this by delay the uarg->callback() until we're sure there's no errors. Signed-off-by: Jason Wang <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dsa/dsa.c')
0 files changed, 0 insertions, 0 deletions