Re: drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks

From: Sergey Senozhatsky
Date: Fri May 17 2019 - 03:29:47 EST


On (05/17/19 15:13), Sergey Senozhatsky wrote:

> ... but most likely it's utterly wrong.
>

JFI, I removed kmemleak annotation and added the following
thing:

@@ -360,6 +360,7 @@ gp100_vmm_valid(struct nvkm_vmm *vmm, void *argv, u32 argc,
return -EINVAL;
}

+ kfree(map->tags);
ret = nvkm_memory_tags_get(memory, device, tags,
nvkm_ltc_tags_clear,
&map->tags);

-ss