aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2016-11-30 05:17:51 +0000
committerDavid S. Miller <[email protected]>2016-11-30 20:06:01 +0000
commitaf1cc7a2b86ddb8668ac38097866bedd7b849a76 (patch)
tree2bf4382bcca7c8ce0e04e5395436c620cbcd0de2 /scripts/gcc-plugins/sancov_plugin.c
parentnet: ethernet: ti: cpsw: fix ASSERT_RTNL() warning during resume (diff)
downloadkernel-af1cc7a2b86ddb8668ac38097866bedd7b849a76.tar.gz
kernel-af1cc7a2b86ddb8668ac38097866bedd7b849a76.zip
tun: 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. Reported-by: wangyunjian <[email protected]> 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 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions