aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wang2017-07-07 19:56:09 +0800
committerDavid S. Miller2017-07-07 20:03:41 +0100
commit55281621b6047d2ffb934a0b984ab0cdb1ad1d76 (patch)
tree06bc06547abaf73e266bd0012d37a781ed6caf93
parent0eaf83de7ce201706f4fa38cf93d9dd20c2a9d24 (diff)
virtio-net: fix leaking of ctx array
Fixes: commit d45b897b11ea ("virtio_net: allow specifying context for rx") 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>
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2e69bcdc5b07..99a26a9efec1 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
kfree(names);
kfree(callbacks);
kfree(vqs);
+ kfree(ctx);
return 0;