]> www.infradead.org Git - users/willy/linux.git/commit
drm/amd/display: Add null check before access structs
authorMa Ke <make24@iscas.ac.cn>
Wed, 26 Jun 2024 13:06:50 +0000 (21:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:33:36 +0000 (17:33 -0400)
commitc96140000915b610d86f941450e15ca552de154a
tree29d1d14cb48a620248311e18e53d61ed151a93db
parentb17eecc08fba0c1d256f9a78fe13e5e568fe7081
drm/amd/display: Add null check before access structs

In enable_phantom_plane, we should better check null pointer before
accessing various structs.

Fixes: 09a4ec5da92c ("drm/amd/display: Refactor dc_state interface")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_mall_phantom.c