RE: [Nouveau] [PATCH] drm/nouveau: Fix memory leak in nvkm_ram_get()

2019-09-23 Thread Liu, Yongxin
.org > Cc: nouv...@lists.freedesktop.org; Wei, Yunguo (Bryan); Gortmaker, Paul > Subject: [Nouveau] [PATCH] drm/nouveau: Fix memory leak in nvkm_ram_get() > > When resuming from ACPI S3, memory leak happens in nvkm_ram_get(). > This is because *pmemory points to newly allocated memory without

[Nouveau][PATCH] drm/nouveau: Fix memory leak in nvkm_ram_get()

2019-08-25 Thread Yongxin Liu
When resuming from ACPI S3, memory leak happens in nvkm_ram_get(). This is because *pmemory points to newly allocated memory without checking and freeing the old memory. Here is the log showing this issue. unreferenced object 0xa3b608c6d5c0 (size 64): comm "kworker/u32:30", pid 934, jiffies