[media] redrat3: fix transmit return value and overrun
authorSean Young <sean@mess.org>
Tue, 29 Jan 2013 11:19:31 +0000 (08:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 8 Feb 2013 16:18:16 +0000 (14:18 -0200)
commit06eae25f162e2a0d9e60f0ad3ec3d14c738fbe68
treeef064afc62db275ad060a5eebe34542f36699a56
parentdb8ee1064c97879bff614d653158dff1894d2e37
[media] redrat3: fix transmit return value and overrun

If more than 127 different lengths are transmitted then the driver causes
an overrun on sample_lens. Try to send as much as possible and return the
amount sent.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/redrat3.c