Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39e219d9 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by Mauro Carvalho Chehab
Browse files

[media] davinci: vpfe: fix error path in probe



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: default avatarJose Pablo Carballo <jose.carballo@ridgerun.com>
Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent bdea0d22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);