search for: e5ff7a5

Displaying 2 results from an estimated 2 matches for "e5ff7a5".

2013 Jun 20
0
[PATCH net for-stable] vhost-net: fix use-after-free in vhost_net_flush
...t sending to stable directly since Dave Miller handles it for net drivers normally. drivers/vhost/net.c | 4 ++-- drivers/vhost/vhost.c | 5 +++++ drivers/vhost/vhost.h | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index ec6fb3f..e5ff7a5 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -856,7 +856,7 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) mutex_unlock(&vq->mutex); if (oldubufs) { - vhost_ubuf_put_and_wait(oldubufs); + vhost_ubuf_put_wait_and_free(oldubufs); mu...
2013 Jun 20
0
[PATCH net for-stable] vhost-net: fix use-after-free in vhost_net_flush
...t sending to stable directly since Dave Miller handles it for net drivers normally. drivers/vhost/net.c | 4 ++-- drivers/vhost/vhost.c | 5 +++++ drivers/vhost/vhost.h | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index ec6fb3f..e5ff7a5 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -856,7 +856,7 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) mutex_unlock(&vq->mutex); if (oldubufs) { - vhost_ubuf_put_and_wait(oldubufs); + vhost_ubuf_put_wait_and_free(oldubufs); mu...