[PATCH] drm/nouveau/svm: Fix refcount leak bug and missing check against null bug

2021-09-07 Thread Chenyuan Mi
the exception handling path. Also, the function forgets to do check against null when get mm by get_task_mm(). Fix this issue by adding null check after get mm by get_task_mm(). Signed-off-by: Chenyuan Mi Signed-off-by: Xiyu Yang Signed-off-by: Xin Tan --- drivers/gpu/drm/nouveau/nouveau_svm.c

[PATCH] drm/i915: Fix missing check for return value of dev_get_platdata()

2023-06-14 Thread Chenyuan Mi
The dev_get_platdata() function may return NULL, which may cause null pointer deference, and most other callsites of dev_get_platdata() do Null check. Add Null check for return value of dev_get_platdata(). Found by our static analysis tool. Signed-off-by: Chenyuan Mi --- drivers/gpu/drm/i915

[PATCH] drm/display/dp_mst: Fix missing check for return value of drm_atomic_get_mst_payload_state()

2023-06-14 Thread Chenyuan Mi
-off-by: Chenyuan Mi --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index 38dab76ae69e..27f4bcf409ea 100644 --- a/drivers/gpu/drm/display