Commit 55281621 authored by Jason Wang's avatar Jason Wang Committed by David S. Miller

virtio-net: fix leaking of ctx array

Fixes: commit d45b897b ("virtio_net: allow specifying context for rx")
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0eaf83de
...@@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi) ...@@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
kfree(names); kfree(names);
kfree(callbacks); kfree(callbacks);
kfree(vqs); kfree(vqs);
kfree(ctx);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment