media: af9035: fix broken I2C and USB I/O
authorAntti Palosaari <crope@iki.fi>
Wed, 27 Nov 2013 20:23:00 +0000 (17:23 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:48:56 +0000 (07:48 -0800)
commitb819d39754f900d1c079b205a17f0a8bf047ce49
tree162a39001ef8b9ab08890132c809253676263410
parent1c01e68d000d1210d4dc68810014db4edc3af969
media: af9035: fix broken I2C and USB I/O

commit 9323297dc0ea9141f8099e474657391bb3ad98f8 upstream.

There was three small buffer len calculation bugs which caused
driver non-working. These are coming from recent commit:
commit 7760e148350bf6df95662bc0db3734e9d991cb03
[media] af9035: Don't use dynamic static allocation

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb-v2/af9035.c