Message ID | 20190517061340.GA709@jagdpanzerIV (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/nouveau/core/memory: kmemleak 684 new suspected memory leaks | expand |
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/memory.c b/drivers/gpu/drm/nouveau/nvkm/core/memory.c index e85a08ecd9da..cd46f54c5c32 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/memory.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/memory.c @@ -25,6 +25,7 @@ #include <core/mm.h> #include <subdev/fb.h> #include <subdev/instmem.h> +#include <linux/kmemleak.h> void nvkm_memory_tags_put(struct nvkm_memory *memory, struct nvkm_device *device, @@ -92,6 +93,7 @@ nvkm_memory_tags_get(struct nvkm_memory *memory, struct nvkm_device *device, refcount_set(&tags->refcount, 1); mutex_unlock(&fb->subdev.mutex); + kmemleak_not_leak(tags); *ptags = tags; return 0; }