[PATCH RESEND] drm/msm: fix a potential memory leak issue in submit_create()

2025-04-23 Thread Haoxiang Li
locate hw_fence") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/msm/msm_fence.c | 7 +++ drivers/gpu/drm/msm/msm_fence.h | 1 + drivers/gpu/drm/msm/msm_gem_submit.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/

[PATCH RESEND] drm/xe: Add check for alloc_ordered_workqueue()

2025-04-23 Thread Haoxiang Li
Add check for the return value of alloc_ordered_workqueue() in xe_gt_alloc() to catch potential exception. Fixes: e2d84e5b2205 ("drm/xe: Mark GT work queue with WQ_MEM_RECLAIM") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li Reviewed-by: Lucas De Marchi --- drivers/gpu/drm/

[PATCH v2 RESEND] drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()

2025-04-23 Thread Haoxiang Li
") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- Changes in v2: - Split the compound conditional statement into separate conditional statements to facilitate cleanup works. - Add cleanup works to destory work queues if allocations fail, and modify the later goto destination to d

[PATCH RESEND] drm/xe/display: Add check for alloc_ordered_workqueue()

2025-04-23 Thread Haoxiang Li
Add check for the return value of alloc_ordered_workqueue() in xe_display_create() to catch potential exception. Fixes: 44e694958b95 ("drm/xe/display: Implement display support") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/xe/display/xe_display.c | 2

[PATCH RESEND] agp: Fix a potential memory leak bug in agp_amdk7_probe()

2025-03-17 Thread Haoxiang Li
2-rc2") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/char/agp/amd-k7-agp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c index 795c8c9ff680..40e1fc462dca 100644 --- a/drivers/char/agp/amd-k7-agp.c +++ b/drivers/c

[PATCH] drm/msm: fix a potential memory leak issue in submit_create()

2025-02-27 Thread Haoxiang Li
locate hw_fence") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/msm/msm_fence.c | 7 +++ drivers/gpu/drm/msm/msm_fence.h | 1 + drivers/gpu/drm/msm/msm_gem_submit.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/

[PATCH] agp: Fix a potential memory leak bug in agp_amdk7_probe()

2025-02-24 Thread Haoxiang Li
2-rc2") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/char/agp/amd-k7-agp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c index 795c8c9ff680..40e1fc462dca 100644 --- a/drivers/char/agp/amd-k7-agp.c +++ b/drivers/c

[PATCH v2] drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()

2025-02-20 Thread Haoxiang Li
") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- Changes in v2: - Split the compound conditional statement into separate conditional statements to facilitate cleanup works. - Add cleanup works to destory work queues if allocations fail, and modify the later goto destination to d

[PATCH] drm/i915/display: Add check for alloc_ordered_workqueue() and alloc_workqueue()

2025-02-19 Thread Haoxiang Li
Add check for the return value of alloc_ordered_workqueue() and alloc_workqueue() to catch potential exception. Fixes: 40053823baad ("drm/i915/display: move modeset probe/remove functions to intel_display_driver.c") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gp

[PATCH] drm/xe/display: Add check for alloc_ordered_workqueue()

2025-02-19 Thread Haoxiang Li
Add check for the return value of alloc_ordered_workqueue() in xe_display_create() to catch potential exception. Fixes: 44e694958b95 ("drm/xe/display: Implement display support") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/xe/display/xe_display.c | 2

[PATCH] drm/xe: Add check for alloc_ordered_workqueue()

2025-02-19 Thread Haoxiang Li
Add check for the return value of alloc_ordered_workqueue() in xe_gt_alloc() to catch potential exception. Fixes: e2d84e5b2205 ("drm/xe: Mark GT work queue with WQ_MEM_RECLAIM") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/xe/xe_gt.c | 2 ++ 1 file

[PATCH] drm/msm/dsi: Add check for devm_kstrdup()

2025-02-19 Thread Haoxiang Li
Add check for the return value of devm_kstrdup() in dsi_host_parse_dt() to catch potential exception. Fixes: 958d8d99ccb3 ("drm/msm/dsi: parse vsync source from device tree") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/msm/dsi/dsi_host.c | 9 +++

[PATCH RESEND] drm/komeda: Add check for komeda_get_layer_fourcc_list()

2024-12-20 Thread Haoxiang Li
Add check for the return value of komeda_get_layer_fourcc_list() to catch the potential exception. Fixes: 5d51f6c0da1b ("drm/komeda: Add writeback support") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c | 4 ++

[PATCH] drm/komeda: Add check for komeda_get_layer_fourcc_list()

2024-12-10 Thread Haoxiang Li
Add check for the return value of komeda_get_layer_fourcc_list() to catch the potential exception. Fixes: 5d51f6c0da1b ("drm/komeda: Add writeback support") Cc: sta...@vger.kernel.org Signed-off-by: Haoxiang Li --- drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c | 4 ++