]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/ras: Add NULL checks for ras_core sys_fn callbacks
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Thu, 19 Mar 2026 05:40:10 +0000 (11:10 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:06:07 +0000 (14:06 -0400)
commite495c688edf44e140db001dcdb12548093291b84
treecb4730b20ef4bfaa23fbdf53e9665ce26bad5659
parentfc61df1516178958d7e61ec52c05257d92e9f2e8
drm/amd/ras: Add NULL checks for ras_core sys_fn callbacks

Some ras core helper functions access ras_core and its callback
table (sys_fn) without validating them first.

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