[media] af9035: Add USB read checksumming
authorMichael Büsch <m@bues.ch>
Sun, 1 Apr 2012 19:33:48 +0000 (16:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 17:45:37 +0000 (14:45 -0300)
commitb1a9599a0d228d6555ad9e5c1fe0b0dfac7c5ccb
tree1f63f9895b47be7b0e0acb544323b7df826c6247
parent812fe6d9426a23ad78055f1fa955acef9bea9a93
[media] af9035: Add USB read checksumming

This adds USB message read checksumming to protect against
device and bus errors.
It also adds a read length check to avoid returning garbage from
the buffer, if the device truncated the message.

Signed-off-by: Michael Buesch <m@bues.ch>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9035.c