[PATCH] drm/amd/display: fix a possible NULL dereference bug

2024-02-16 Thread Harshit Mogalapalli
check. Fixes: 028bac583449 ("drm/amd/display: decouple dmcub execution to reduce lock granularity") Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202311141141.golapxd5-...@intel.com/ Signed-off-by: Harshit Mogalapalli --- Only compile tested -

[PATCH] drm/amd/display: Fix memory leak in dm_set_writeback()

2023-12-08 Thread Harshit Mogalapalli
'wb_info' needs to be freed on error paths or it would leak the memory. Smatch pointed this out. Fixes: c81e13b929df ("drm/amd/display: Hande writeback request from userspace") Signed-off-by: Harshit Mogalapalli --- This is based on static analysis and only compile tested --- drive

Re: [PATCH 01/18] drm/amd/display: improve the message printed when loading DC

2023-05-23 Thread Harshit Mogalapalli
: we previously assumed 'adev->dm.dc' could be null (see line 1669) If you fix this could you please consider adding: Reported-by: Harshit Mogalapalli Thanks, Harshit goto error; }

[PATCH next] drm/amdgpu: Fix unsigned comparison with zero in gmc_v9_0_process_interrupt()

2023-05-22 Thread Harshit Mogalapalli
fault occurs") Signed-off-by: Harshit Mogalapalli --- This is from static analysis, only compile tested. --- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9

[PATCH next] drm/amd/display: Fix possible NULL dereference in dc_dmub_srv_cmd_run_list()

2023-04-26 Thread Harshit Mogalapalli
ingle function") Signed-off-by: Harshit Mogalapalli --- Only compile tested. --- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_s