[PATCH -next] afs: Fix the memory leak in afs_mkdir

2020-06-23 Thread Chen Tao
Fix the memory leak in afs_mkdir not freeing scb in error path. Fixes: a58823ac45896 ("afs: Fix application of status and callback to be under same lock") Signed-off-by: Chen Tao --- fs/afs/dir.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs

[PATCH] ARM: OMAP2+: Fix possible memory leak in omap_hwmod_allocate_module

2020-06-19 Thread Chen Tao
Fix memory leak in omap_hwmod_allocate_module not freeing in handling error path. Fixes: 8c87970543b17("ARM: OMAP2+: Add functions to allocate module data from device tree") Signed-off-by: Chen Tao --- arch/arm/mach-omap2/omap_hwmod.c | 14 +++--- 1 file changed, 11 insert

[RESEND PATCH] drm/msm/dpu: fix error return code in dpu_encoder_init

2020-06-17 Thread Chen Tao
Fix to return negative error code -ENOMEM with the use of ERR_PTR from dpu_encoder_init. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Chen Tao --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] drm/amdgpu/debugfs: fix memory leak when amdgpu_virt_enable_access_debugfs failed

2020-06-15 Thread Chen Tao
Fix memory leak in amdgpu_debugfs_gpr_read not freeing data when amdgpu_virt_enable_access_debugfs failed. Fixes: 95a2f917387a2 ("drm/amdgpu: restrict debugfs register accessunder SR-IOV") Signed-off-by: Chen Tao --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 +++- 1 file

[PATCH 1/2] drm/amdgpu/debugfs: fix memory leak when pm_runtime_get_sync failed

2020-06-15 Thread Chen Tao
Fix memory leak in amdgpu_debugfs_gpr_read not freeing data when pm_runtime_get_sync failed. Fixes: a9ffe2a983383 ("drm/amdgpu/debugfs: properly handle runtime pm") Signed-off-by: Chen Tao --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 +++- 1 file changed, 3 insertions(+),

[PATCH] drm/msm/dpu: fix error return code in dpu_encoder_init

2020-06-07 Thread Chen Tao
Fix to return negative error code -ENOMEM with the use of ERR_PTR from dpu_encoder_init. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Chen Tao --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] mm/page_alloc.c: Add missing line breaks

2020-06-02 Thread Chen Tao
Add missing line breaks on pr_warn(). Signed-off-by: Chen Tao --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cef05d3a23f5..0b0f05e1e49e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -7123,7 +7123,7

[PATCH -next] scsi: ibmvscsi: Make some functions static

2020-05-20 Thread Chen Tao
Fix the following warning: drivers/scsi/ibmvscsi/ibmvscsi.c:2387:12: warning: symbol 'ibmvscsi_module_init' was not declared. Should it be static? drivers/scsi/ibmvscsi/ibmvscsi.c:2409:13: warning: symbol 'ibmvscsi_module_exit' was not declared. Should it be static? Sig