projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2723fea
)
vhost: fix zcopy reference counting
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 19 Jul 2011 10:19:18 +0000
(13:19 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 19 Jul 2011 10:28:34 +0000
(13:28 +0300)
Fix get/put refcount imbalance with zero copy,
which caused qemu to hang forever on guest driver unload.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vhost/vhost.c
b/drivers/vhost/vhost.c
index 46822c0d9f7f007896cd19540703dae8853c897d..c16d22545868b25f559c2409dc408d9c80e0f8fb 100644
(file)
--- a/
drivers/vhost/vhost.c
+++ b/
drivers/vhost/vhost.c
@@
-1578,7
+1578,6
@@
struct vhost_ubuf_ref *vhost_ubuf_alloc(struct vhost_virtqueue *vq,
if (!ubufs)
return ERR_PTR(-ENOMEM);
kref_init(&ubufs->kref);
- kref_get(&ubufs->kref);
init_waitqueue_head(&ubufs->wait);
ubufs->vq = vq;
return ubufs;