This patch fix a bug in the i2c code of ttusb2 driver. Signed-off-by: Jose Alberto Reguero <jareguero@xxxxxxxxxxxxxx> Jose Alberto
diff -ur linux/drivers/media/dvb/dvb-usb/ttusb2.c linux.new/drivers/media/dvb/dvb-usb/ttusb2.c --- linux/drivers/media/dvb/dvb-usb/ttusb2.c 2011-09-24 05:45:14.000000000 +0200 +++ linux.new/drivers/media/dvb/dvb-usb/ttusb2.c 2011-10-01 19:42:46.715723308 +0200 @@ -384,7 +384,7 @@ memcpy(&obuf[3], msg[i].buf, msg[i].len); - if (ttusb2_msg(d, CMD_I2C_XFER, obuf, msg[i].len+3, ibuf, obuf[2] + 3) < 0) { + if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obuf[1]+3, ibuf, obuf[2] + 3) < 0) { err("i2c transfer failed."); break; }