[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210125183224.358407923@linuxfoundation.org>
Date: Mon, 25 Jan 2021 19:40:16 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Sean Paul <seanpaul@...omium.org>,
Ramalingam C <ramalingam.c@...el.com>,
Uma Shankar <uma.shankar@...el.com>,
Karthik B S <karthik.b.s@...el.com>,
Anshuman Gupta <anshuman.gupta@...el.com>,
Jani Nikula <jani.nikula@...el.com>
Subject: [PATCH 5.10 194/199] drm/i915/hdcp: Get conn while content_type changed
From: Anshuman Gupta <anshuman.gupta@...el.com>
commit 8662e1119a7d1baa1b2001689b2923e9050754bd upstream.
Get DRM connector reference count while scheduling a prop work
to avoid any possible destroy of DRM connector when it is in
DRM_CONNECTOR_REGISTERED state.
Fixes: a6597faa2d59 ("drm/i915: Protect workers against disappearing connectors")
Cc: Sean Paul <seanpaul@...omium.org>
Cc: Ramalingam C <ramalingam.c@...el.com>
Reviewed-by: Uma Shankar <uma.shankar@...el.com>
Reviewed-by: Ramalingam C <ramalingam.c@...el.com>
Tested-by: Karthik B S <karthik.b.s@...el.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@...el.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111081120.28417-3-anshuman.gupta@intel.com
(cherry picked from commit b3c6661aad979ec3d4f5675cf3e6a35828607d6a)
Signed-off-by: Jani Nikula <jani.nikula@...el.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/gpu/drm/i915/display/intel_hdcp.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/gpu/drm/i915/display/intel_hdcp.c
+++ b/drivers/gpu/drm/i915/display/intel_hdcp.c
@@ -2187,6 +2187,7 @@ void intel_hdcp_update_pipe(struct intel
if (content_protection_type_changed) {
mutex_lock(&hdcp->mutex);
hdcp->value = DRM_MODE_CONTENT_PROTECTION_DESIRED;
+ drm_connector_get(&connector->base);
schedule_work(&hdcp->prop_work);
mutex_unlock(&hdcp->mutex);
}
Powered by blists - more mailing lists