Files
linux/drivers/net
Jason Wang aa196eed3d 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 <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-30 15:06:02 -05:00
..
2016-06-15 22:06:06 -07:00
2016-08-15 11:57:55 -07:00
2016-11-27 19:59:50 -05:00
2016-08-31 14:33:09 -07:00
2016-05-09 00:00:28 -04:00
2016-09-20 22:55:23 -04:00
2016-04-26 15:53:05 -04:00
2016-08-30 22:27:18 -07:00