Skip to content

Commit 4fc5787

Browse files
palosaarimchehab
authored andcommitted
[media] m88ds3103: fix possible i2c deadlock
Adapter is locked by I2C core already. Use unlocked i2c_transfer() version __i2c_transfer() to avoid deadlock. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent eafa2ad commit 4fc5787

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/dvb-frontends/m88ds3103.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ static int m88ds3103_select(struct i2c_adapter *adap, void *mux_priv, u32 chan)
11591159
mutex_lock(&priv->i2c_mutex);
11601160

11611161
/* open tuner I2C repeater for 1 xfer, closes automatically */
1162-
ret = i2c_transfer(priv->i2c, gate_open_msg, 1);
1162+
ret = __i2c_transfer(priv->i2c, gate_open_msg, 1);
11631163
if (ret != 1) {
11641164
dev_warn(&priv->i2c->dev, "%s: i2c wr failed=%d\n",
11651165
KBUILD_MODNAME, ret);

0 commit comments

Comments
 (0)