Re: [PATCH] drm/nouveau: Fix memory leak in nouveau_bo_alloc

2019-12-11 Thread Navid Emamdoost
ping ... On Tue, Nov 26, 2019 at 11:50 AM Navid Emamdoost wrote: > > ping... > > On Thu, Nov 21, 2019 at 12:09 PM Navid Emamdoost > wrote: > > > > On Mon, Oct 21, 2019 at 4:14 PM Navid Emamdoost > > wrote: > > > > > > In the implementation of nouveau_bo_alloc() if it fails to determine the > >

Re: [PATCH] drm/nouveau: Fix memory leak in nouveau_bo_alloc

2019-11-27 Thread Navid Emamdoost
ping... On Thu, Nov 21, 2019 at 12:09 PM Navid Emamdoost wrote: > > On Mon, Oct 21, 2019 at 4:14 PM Navid Emamdoost > wrote: > > > > In the implementation of nouveau_bo_alloc() if it fails to determine the > > target page size via pi, then the allocated memory for nvbo should be > > released. >

Re: [PATCH] drm/nouveau: Fix memory leak in nouveau_bo_alloc

2019-11-22 Thread Navid Emamdoost
On Mon, Oct 21, 2019 at 4:14 PM Navid Emamdoost wrote: > > In the implementation of nouveau_bo_alloc() if it fails to determine the > target page size via pi, then the allocated memory for nvbo should be > released. > > Fixes: 019cbd4a4feb ("drm/nouveau: Initialize GEM object before TTM object")

Re: [PATCH] drm/nouveau: Fix memory leak in nouveau_bo_alloc

2019-10-22 Thread Markus Elfring
> +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c > @@ -276,8 +276,10 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 *size, int > *align, u32 flags, > break; > } > > - if (WARN_ON(pi < 0)) > + if (WARN_ON(pi < 0)) { > + kfree(nvbo); >

[PATCH] drm/nouveau: Fix memory leak in nouveau_bo_alloc

2019-10-21 Thread Navid Emamdoost
In the implementation of nouveau_bo_alloc() if it fails to determine the target page size via pi, then the allocated memory for nvbo should be released. Fixes: 019cbd4a4feb ("drm/nouveau: Initialize GEM object before TTM object") Signed-off-by: Navid Emamdoost ---