diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-07-21 03:32:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 19:37:19 -0400 |
commit | f088ccd6404ca5966104afcae319384f41a0b8cb (patch) | |
tree | ecd2f426d8a60f42953913027669f4c20a099561 | |
parent | 79980d9c985aa58db50f388634739419e2e20a5a (diff) |
[media] tuner-xc2028: unlock on error in xc2028_get_afc()
We need to do a mutex_unlock(&priv->lock) before returning.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/common/tuners/tuner-xc2028.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c index 9e602856b2fa..ea0550eafe7d 100644 --- a/drivers/media/common/tuners/tuner-xc2028.c +++ b/drivers/media/common/tuners/tuner-xc2028.c | |||
@@ -978,7 +978,7 @@ static int xc2028_get_afc(struct dvb_frontend *fe, s32 *afc) | |||
978 | /* Get AFC */ | 978 | /* Get AFC */ |
979 | rc = xc2028_get_reg(priv, XREG_FREQ_ERROR, &afc_reg); | 979 | rc = xc2028_get_reg(priv, XREG_FREQ_ERROR, &afc_reg); |
980 | if (rc < 0) | 980 | if (rc < 0) |
981 | return rc; | 981 | goto ret; |
982 | 982 | ||
983 | *afc = afc_reg * 15625; /* Hz */ | 983 | *afc = afc_reg * 15625; /* Hz */ |
984 | 984 | ||