summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-07-07 19:56:09 +0800
committerDavid S. Miller <davem@davemloft.net>2017-07-07 20:03:41 +0100
commit55281621b6047d2ffb934a0b984ab0cdb1ad1d76 (patch)
tree06bc06547abaf73e266bd0012d37a781ed6caf93 /drivers
parent0eaf83de7ce201706f4fa38cf93d9dd20c2a9d24 (diff)
downloadlwn-55281621b6047d2ffb934a0b984ab0cdb1ad1d76.tar.gz
lwn-55281621b6047d2ffb934a0b984ab0cdb1ad1d76.zip
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>
Diffstat (limited to 'drivers')
-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;