summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-07-07 13:56:09 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-07 21:03:41 +0200
commit55281621b6047d2ffb934a0b984ab0cdb1ad1d76 (patch)
tree06bc06547abaf73e266bd0012d37a781ed6caf93 /drivers/net
parentMerge tag 'mac80211-for-davem-2017-07-07' of git://git.kernel.org/pub/scm/lin... (diff)
downloadlinux-55281621b6047d2ffb934a0b984ab0cdb1ad1d76.tar.xz
linux-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/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;