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

Commit f088ccd6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] tuner-xc2028: unlock on error in xc2028_get_afc()



We need to do a mutex_unlock(&priv->lock) before returning.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 79980d9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -978,7 +978,7 @@ static int xc2028_get_afc(struct dvb_frontend *fe, s32 *afc)
	/* Get AFC */
	rc = xc2028_get_reg(priv, XREG_FREQ_ERROR, &afc_reg);
	if (rc < 0)
		return rc;
		goto ret;

	*afc = afc_reg * 15625; /* Hz */