video: tegra: hdcp: Add Missing Lock
[linux-2.6.git] / drivers / video / tegra / dc / nvhdcp.c
index b509a6c..30b508c 100644 (file)
@@ -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)) {