Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683145 > unrolled thread
| Started by | Jason Wang <jasowang@redhat.com> |
|---|---|
| First post | 2017-07-07 14:00 +0200 |
| Last post | 2017-07-07 21:10 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH net] virtio-net: fix leaking of ctx array Jason Wang <jasowang@redhat.com> - 2017-07-07 14:00 +0200
Re: [PATCH net] virtio-net: fix leaking of ctx array "Michael S. Tsirkin" <mst@redhat.com> - 2017-07-07 17:50 +0200
Re: [PATCH net] virtio-net: fix leaking of ctx array David Miller <davem@davemloft.net> - 2017-07-07 21:10 +0200
| From | Jason Wang <jasowang@redhat.com> |
|---|---|
| Date | 2017-07-07 14:00 +0200 |
| Subject | [PATCH net] virtio-net: fix leaking of ctx array |
| Message-ID | <u0A5r-3x2-3@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | "Michael S. Tsirkin" <mst@redhat.com> |
|---|---|
| Date | 2017-07-07 17:50 +0200 |
| Message-ID | <u0DG1-5Yg-3@gated-at.bofh.it> |
| In reply to | #1683145 |
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
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-07-07 21:10 +0200 |
| Message-ID | <u0GNz-8jW-13@gated-at.bofh.it> |
| In reply to | #1683145 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web