mbox series

[0/2] Fix null pointer error in HDCP capability check

Message ID 20240722064451.3610512-1-suraj.kandpal@intel.com (mailing list archive)
Headers show
Series Fix null pointer error in HDCP capability check | expand

Message

Kandpal, Suraj July 22, 2024, 6:44 a.m. UTC
During suspend/resume or plug/unplug scenarios encoder and gsc
are not initialized. This patch series adds checks to make sure
we don't run into a null pointer error.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>

Suraj Kandpal (3):
  drm/i915/hdcp: Add encoder check in intel_hdcp_get_capability
  drm/i915/hdcp: Add encoder check in hdcp2_get_capability
  drm/xe/hdcp: Check GSC structure validity

 drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 11 +++++++++--
 drivers/gpu/drm/i915/display/intel_hdcp.c    |  7 ++++++-
 drivers/gpu/drm/xe/display/xe_hdcp_gsc.c     |  8 ++++++--
 3 files changed, 21 insertions(+), 5 deletions(-)

Comments

Kandpal, Suraj July 25, 2024, 3:37 a.m. UTC | #1
> -----Original Message-----
> From: Kandpal, Suraj <suraj.kandpal@intel.com>
> Sent: Monday, July 22, 2024 12:15 PM
> To: intel-gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org
> Cc: Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>; Kandpal, Suraj
> <suraj.kandpal@intel.com>
> Subject: [PATCH 0/2] Fix null pointer error in HDCP capability check
> 
> During suspend/resume or plug/unplug scenarios encoder and gsc are not
> initialized. This patch series adds checks to make sure we don't run into a
> null pointer error.
> 
Thanks for all the reviews Pushing to drm-intel-next CI.IGT failures not relates to this patch series
Regards,
Suraj Kandpal
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> 
> Suraj Kandpal (3):
>   drm/i915/hdcp: Add encoder check in intel_hdcp_get_capability
>   drm/i915/hdcp: Add encoder check in hdcp2_get_capability
>   drm/xe/hdcp: Check GSC structure validity
> 
>  drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 11 +++++++++--
>  drivers/gpu/drm/i915/display/intel_hdcp.c    |  7 ++++++-
>  drivers/gpu/drm/xe/display/xe_hdcp_gsc.c     |  8 ++++++--
>  3 files changed, 21 insertions(+), 5 deletions(-)
> 
> --
> 2.43.2