linux/drivers/vhost
Jason Wang c460f05739 vhost_net: zerocopy: fix possible NULL pointer dereference of vq->bufs
When we want to disable vhost_net backend while there's a tx work, a possible
NULL pointer defernece may happen we we try to deference the vq->bufs after
vhost_net_set_backend() assign a NULL to it.

As suggested by Michael, fix this by checking the vq->bufs instead of
vhost_sock_zcopy().

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2012-05-02 18:22:22 +03:00
..
Kconfig net/macvtap: add vhost support 2010-02-18 14:08:38 -08:00
Makefile
net.c vhost_net: zerocopy: fix possible NULL pointer dereference of vq->bufs 2012-05-02 18:22:22 +03:00
test.c tools/virtio: fix up vhost/test module build 2012-04-12 10:35:42 +03:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c skbuff: struct ubuf_info callback type safety 2012-04-13 13:09:19 -04:00
vhost.h skbuff: struct ubuf_info callback type safety 2012-04-13 13:09:19 -04:00