* [PATCH net] virtio-net: fix leaking of ctx array
@ 2017-07-07 11:56 Jason Wang
2017-07-07 15:48 ` Michael S. Tsirkin
2017-07-07 19:04 ` David Miller
0 siblings, 2 replies; 3+ 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] 3+ messages in thread
* Re: [PATCH net] virtio-net: fix leaking of ctx array
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 19:04 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2017-07-07 15:48 UTC (permalink / raw)
To: Jason Wang; +Cc: virtualization, netdev, linux-kernel, David Miller
On Fri, Jul 07, 2017 at 07:56:09PM +0800, Jason Wang wrote:
> Fixes: commit d45b897b11ea ("virtio_net: allow specifying context for rx")
> Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Needed for stable as well.
Thanks Jason.
> ---
> 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 [flat|nested] 3+ messages in thread
* Re: [PATCH net] virtio-net: fix leaking of ctx array
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 19:04 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-07-07 19:04 UTC (permalink / raw)
To: jasowang; +Cc: mst, virtualization, netdev, linux-kernel
From: Jason Wang <jasowang@redhat.com>
Date: Fri, 7 Jul 2017 19:56:09 +0800
> Fixes: commit d45b897b11ea ("virtio_net: allow specifying context for rx")
> Signed-off-by: Jason Wang <jasowang@redhat.com>
Applied and queued up for -stable, thanks Jason.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-07 19:04 UTC | newest]
Thread overview: 3+ 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 19:04 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).