[AMD Official Use Only - General]
Hi Peter:
> -Original Message-
> From: Peter Zijlstra
> Sent: Sunday, September 10, 2023 1:40 AM
> To: Meng, Li (Jassmine)
> Cc: Rafael J . Wysocki ; Huang, Ray
> ; linux...@vger.kernel.org; linux-
> ker...@vger.kernel.org; x..
map_config is need to be freed directly after
regmap initialization to avoid memory leak.
Fixes: 529a1101212a("mfd: syscon: Don't free allocated name for regmap_config")
Cc: Marc Zyngier
Cc: sta...@vger.kernel.org
Signed-off-by: Meng Li
---
drivers/mfd/syscon.c | 2 +-
1 file
From: Meng Li
When initialize cadence qspi controller, it is need to set cqspi
to the driver_data field of struct device, because it will be
used in function cqspi_remove/suspend/resume(). Otherwise, there
will be a crash trace as below when invoking these finctions.
Call trace:
cqspi_suspend
From: Meng Li
There is a upstream commit cffa4b2122f5("regmap:debugfs:
Fix a memory leak when calling regmap_attach_dev") that
adds a if condition when create name for debugfs_name.
With below function invoking logical, debugfs_name is
freed in regmap_debugfs_exit(), but it is not cre
From: Meng Li
There is a upstream commit cffa4b2122f5("regmap:debugfs:
Fix a memory leak when calling regmap_attach_dev") that
adds a if condition when create name for debugfs_name.
With below function invoking logical, debugfs_name is
freed in regmap_debugfs_exit(), but it is not cre
ted commit by adding Cc:
Fixes: 529a1101212a("mfd: syscon: Don't free allocated name for regmap_config")
Cc: Marc Zyngier
Cc: sta...@vger.kernel.org
Signed-off-by: Meng Li
---
drivers/mfd/syscon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/syscon
From: Meng Li
There will be memory leak if driver probe failed. Trace as below:
backtrace:
[<2415258f>] kmemleak_alloc+0x3c/0x50
[<f447ebe4>] __kmalloc+0x208/0x530
[<48bc7b3a>] of_dma_get_range+0xe4/0x1b0
[<41e39065>]
7;t
free dma_range_map when driver probe failed and cause above
memory leak. So, add code to free it in error path.
v2:
set dev->dma_range_map as NULL after memory free.
Fixes: e0d072782c73("dma-mapping: introduce DMA range map, supplanting
dma_pfn_offset ")
Cc: sta...@vger.kernel.o
con: Don't free allocated name for regmap_config")
Cc: sta...@vger.kernel.org
Signed-off-by: Meng Li
---
drivers/mfd/syscon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index ca465794ea9c..df5cebb372a5 100644
--- a/d
7;t
free dma_range_map when driver probe failed and cause above
memory leak. So, add code to free it in error path.
Fixes: e0d072782c73("dma-mapping: introduce DMA range map, supplanting
dma_pfn_offset ")
Cc: sta...@vger.kernel.org
Signed-off-by: Meng Li
---
drivers/base/dd.c | 1 +
1 f
10 matches
Mail list logo