All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] virtio-net: fix leaking of ctx array
@ 2017-07-07 11:56 Jason Wang
  2017-07-07 15:48 ` Michael S. Tsirkin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jason Wang @ 2017-07-07 11:56 UTC (permalink / raw)
  To: mst, jasowang, virtualization, netdev, linux-kernel

Fixes: commit d45b897b11ea ("virtio_net: allow specifying context for rx")
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 drivers/net/virtio_net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2e69bcd..99a26a9 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;
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH net] virtio-net: fix leaking of ctx array
@ 2017-07-07 11:56 Jason Wang
  0 siblings, 0 replies; 6+ messages in thread
From: Jason Wang @ 2017-07-07 11:56 UTC (permalink / raw)
  To: mst, jasowang, virtualization, netdev, linux-kernel

Fixes: commit d45b897b11ea ("virtio_net: allow specifying context for rx")
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 drivers/net/virtio_net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2e69bcd..99a26a9 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;
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-07-07 19:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-07 11:56 [PATCH net] virtio-net: fix leaking of ctx array Jason Wang
2017-07-07 15:48 ` Michael S. Tsirkin
2017-07-07 15:48 ` Michael S. Tsirkin
2017-07-07 19:04 ` David Miller
2017-07-07 19:04 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2017-07-07 11:56 Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.