Re: [PATCH] drm: fix memory leak in msm_gem when no iommu is present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fyi, I have this patch applied locally (well, actually the previous
one with slightly amended subject line).. was just waiting a bit to
see if any other fixes turned up before sending a fixes pull.  Thanks!

BR,
-R

On Mon, Apr 14, 2014 at 2:40 PM, Micah Richert
<richert@xxxxxxxxxxxxxxxxxxxx> wrote:
> Signed-off-by: Micah Richert <richert@xxxxxxxxxxxxxxxxxxxx>
> ---
>  drivers/gpu/drm/msm/msm_gem.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
> index e8458bc..c818a06 100644
> --- a/drivers/gpu/drm/msm/msm_gem.c
> +++ b/drivers/gpu/drm/msm/msm_gem.c
> @@ -118,8 +118,10 @@ static void put_pages(struct drm_gem_object *obj)
>
>                 if (iommu_present(&platform_bus_type))
>                         drm_gem_put_pages(obj, msm_obj->pages, true, false);
> -               else
> +               else {
>                         drm_mm_remove_node(msm_obj->vram_node);
> +                       drm_free_large(msm_obj->pages);
> +               }
>
>                 msm_obj->pages = NULL;
>         }
> --
> 1.8.3.2
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux