[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] vfio: Fix free in dma mapping error path
From: |
Tom Lyon |
Subject: |
Re: [Qemu-devel] [PATCH] vfio: Fix free in dma mapping error path |
Date: |
Wed, 4 May 2011 12:19:07 -0700 |
User-agent: |
KMail/1.13.5 (Linux/2.6.34.7-0.7-desktop; KDE/4.4.4; x86_64; ; ) |
On Friday, April 29, 2011 03:05:54 pm Alex Williamson wrote:
> This is allocated via vmalloc, so needs vfree, not kfree.
>
> Signed-off-by: Alex Williamson <address@hidden>
> ---
>
> drivers/vfio/vfio_dma.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/vfio/vfio_dma.c b/drivers/vfio/vfio_dma.c
> index cee1a25..4a488b6 100644
> --- a/drivers/vfio/vfio_dma.c
> +++ b/drivers/vfio/vfio_dma.c
> @@ -322,7 +322,7 @@ int vfio_dma_map_common(struct vfio_listener *listener,
> if (ret != npage) {
> printk(KERN_ERR "%s: get_user_pages_fast returns %d, not %d\n",
> __func__, ret, npage);
> - kfree(pages);
> + vfree(pages);
> ret = -EFAULT;
> goto out_lock;
> }
Applied. Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH] vfio: Fix free in dma mapping error path,
Tom Lyon <=