Use the mst_port(intel_dp) variable to derive remote aux. We
are sporadically seeing connector->port->aux giving an invalid
address.

Signed-off-by: Suraj Kandpal <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c 
b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
index 2edffe62f360..58915a2ad5dd 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
@@ -696,7 +696,7 @@ int intel_dp_hdcp_get_remote_capability(struct 
intel_connector *connector,
        if (!connector->mst_port)
                return -EINVAL;
 
-       aux = &connector->port->aux;
+       aux = &connector->mst_port->aux;
        ret =  _intel_dp_hdcp2_get_capability(aux, hdcp2_capable);
        if (ret)
                drm_dbg_kms(&i915->drm,
-- 
2.43.2

Reply via email to