]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/ras: Add input pointer validation in ras core helpers
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Thu, 19 Mar 2026 05:30:00 +0000 (11:00 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:08:01 +0000 (14:08 -0400)
commit2ccdefeec7e333e583d99c7619e8fa1d97dde013
treef4e1cc818dc5338400125574db8347cf86b8a4d5
parente495c688edf44e140db001dcdb12548093291b84
drm/amd/ras: Add input pointer validation in ras core helpers

Add NULL checks for helper input/output pointers that are directly
dereferenced, such as tm, seqno, dev_info and init_config.

Cc: Tao Zhou <tao.zhou1@amd.com>
Cc: YiPeng Chai <YiPeng.Chai@amd.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/rascore/ras_core.c