Skip to content

Commit

Permalink
V4L/DVB (9140): anysee: unlock I2C-mutex in error case
Browse files Browse the repository at this point in the history
- unlock I2C-mutex also in error case

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Oct 13, 2008
1 parent 45d0110 commit e613f8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/dvb-usb/anysee.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg,
inc = 1;
}
if (ret)
return ret;
break;

i += inc;
}

mutex_unlock(&d->i2c_mutex);

return i;
return ret ? ret : i;
}

static u32 anysee_i2c_func(struct i2c_adapter *adapter)
Expand Down

0 comments on commit e613f8f

Please sign in to comment.