mirror of https://gitee.com/openkylin/linux.git
virtio-net: fix leaking of ctx array
Fixes: commit d45b897b11
("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>
This commit is contained in:
parent
0eaf83de7c
commit
55281621b6
|
@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
|
|||
kfree(names);
|
||||
kfree(callbacks);
|
||||
kfree(vqs);
|
||||
kfree(ctx);
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue