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

Commit 9793e1d2 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mauro Carvalho Chehab
Browse files

media: au0828: fix unbalanced lock/unlock in au0828_usb_probe



Call mutex_unlock and free dev on failure.

Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent be90cc8e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -628,6 +628,8 @@ static int au0828_usb_probe(struct usb_interface *interface,
	if (retval) {
		pr_err("%s() au0282_dev_register failed to register on V4L2\n",
			__func__);
		mutex_unlock(&dev->lock);
		kfree(dev);
		goto done;
	}