summaryrefslogtreecommitdiff
path: root/drivers/video/tegra
diff options
context:
space:
mode:
authorMatt Wagner <mwagner@nvidia.com>2012-08-10 11:43:35 -0700
committerSimone Willett <swillett@nvidia.com>2012-08-14 17:04:13 -0700
commit77c8da0aa18fad9e33fd8b1afb2013b1a476d74e (patch)
treef2b7c3e371fc3ff0ad40141501ac31c67041ab4b /drivers/video/tegra
parentb1514438f2cdefae817328ff69f8b6dc5f2d878b (diff)
video: tegra: hdcp: Add Missing Lock
Lock was missing around one state set, so we add it here. Bug 1024031 Change-Id: Iab013fff7e8519e8bcc91e84a5ca7cd6e6e783da Signed-off-by: Matt Wagner <mwagner@nvidia.com> Reviewed-on: http://git-master/r/122802 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra')
-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 b509a6c..30b508c 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)) {