summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/dc/nvhdcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/nvhdcp.c b/drivers/video/tegra/dc/nvhdcp.c
index b509a6c78499..30b508ca0c94 100644
--- a/drivers/video/tegra/dc/nvhdcp.c
+++ b/drivers/video/tegra/dc/nvhdcp.c
@@ -841,7 +841,9 @@ static void nvhdcp_downstream_worker(struct work_struct *work)
nvhdcp_err("nvhdcp failure - giving up\n");
goto err;
}
+ mutex_lock(&nvhdcp->state_lock);
nvhdcp->state = STATE_UNAUTHENTICATED;
+ mutex_unlock(&nvhdcp->state_lock);
/* check plug state to terminate early in case flush_workqueue() */
if (!nvhdcp_is_plugged(nvhdcp)) {