RE: [PATCH V6 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-09-10 Thread Meng, Li (Jassmine)
[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..

[PATCH] mfd: syscon: free the allocated name field of struct regmap_config

2021-04-06 Thread Meng . Li
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

[PATCH] drivers: spi: cadence: set cqspi to the driver_data field of struct device

2021-03-11 Thread Meng . Li
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

[PATCH] driver: regmap: set debugfs_name to NULL after it is freed

2021-02-25 Thread Meng . Li
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

[PATCH] driver: regmap: set debugfs_name to NULL after it is freed

2021-02-25 Thread Meng . Li
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

[v2][PATCH] Revert "mfd: syscon: Don't free allocated name for regmap_config"

2021-01-14 Thread meng . li
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

[PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Meng . Li
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>]

[PATCH v2] drivers core: Free dma_range_map when driver probe failed

2021-01-04 Thread Meng . Li
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

[PATCH] Revert "mfd: syscon: Don't free allocated name for regmap_config"

2020-12-27 Thread Meng . Li
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

[PATCH] drivers core: Free dma_range_map when driver probe failed

2020-12-24 Thread Meng . Li
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