Skip to content

Commit

Permalink
virtio-net: fix leaking of ctx array
Browse files Browse the repository at this point in the history
Fixes: commit d45b897 ("virtio_net: allow specifying context for rx")
Signed-off-by: Jason Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jasowang authored and davem330 committed Jul 7, 2017
1 parent 0eaf83d commit 5528162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,7 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
kfree(names);
kfree(callbacks);
kfree(vqs);
kfree(ctx);

return 0;

Expand Down

0 comments on commit 5528162

Please sign in to comment.