[media] davinci: vpfe: fix error path in probe
authorLad, Prabhakar <[email protected]>
Fri, 10 May 2013 03:48:38 +0000 (00:48 -0300)
committerMauro Carvalho Chehab <[email protected]>
Tue, 21 May 2013 10:57:30 +0000 (07:57 -0300)
The error path on failure was calling mutex_unlock(), but there was
no actuall call before for mutex_lock(). This patch fixes this issue
by pointing it to proper go label.

Reported-by: Jose Pablo Carballo <[email protected]>
Signed-off-by: Lad, Prabhakar <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/davinci/vpfe_capture.c

index 8c50d3074866218c829e990ca376ab0744dc1a17..3827fe1e2692478debd898838570ab79e112ee48 100644 (file)
@@ -1837,7 +1837,7 @@ static int vpfe_probe(struct platform_device *pdev)
        if (NULL == ccdc_cfg) {
                v4l2_err(pdev->dev.driver,
                         "Memory allocation failed for ccdc_cfg\n");
-               goto probe_free_lock;
+               goto probe_free_dev_mem;
        }
 
        mutex_lock(&ccdc_lock);