Commit 354934e1 authored by Jason Wang's avatar Jason Wang Committed by Greg Kroah-Hartman

virtio-net: fix leaking of ctx array


[ Upstream commit 55281621 ]

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 34e7c498
......@@ -2221,6 +2221,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
kfree(names);
kfree(callbacks);
kfree(vqs);
kfree(ctx);
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