Skip to content

Commit

Permalink
V4L/DVB (13721): [Mantis] Bug! Before bailing out, Unlock
Browse files Browse the repository at this point in the history
Thanks to hotwings <user.vdr@gmail.com> for pointing out the bug

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent 51d20db commit 99d96e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/dvb/mantis/mantis_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ static int mantis_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, in
ret = mantis_i2c_write(mantis, &msgs[i]);

if (ret < 0)
return ret;
goto bail_out;
}
mutex_unlock(&mantis->i2c_lock);

return num;

bail_out:
mutex_unlock(&mantis->i2c_lock);
return ret;
}

static u32 mantis_i2c_func(struct i2c_adapter *adapter)
Expand Down

0 comments on commit 99d96e4

Please sign in to comment.