]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/hdcp: Check GSC structure validity
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 22 Jul 2024 06:44:51 +0000 (12:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:29 +0000 (12:00 +0200)
commitc940627857eedca8407b84b40ceb4252b100d291
tree6f89cc43f79543fd7e817eed0e2bf5cbf9fc9b5c
parentf0454b3cb0584a6bf275aeb49be61a760fd546a2
drm/xe/hdcp: Check GSC structure validity

[ Upstream commit b4224f6bae3801d589f815672ec62800a1501b0d ]

Sometimes xe_gsc is not initialized when checked at HDCP capability
check. Add gsc structure check to avoid null pointer error.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240722064451.3610512-4-suraj.kandpal@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/xe/display/xe_hdcp_gsc.c