[media] lirc: validate transmission ir data
authorSean Young <sean@mess.org>
Mon, 8 Jul 2013 20:33:11 +0000 (17:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 30 Jul 2013 20:03:16 +0000 (17:03 -0300)
commit25379bf8bc4d4e83bd74d823048b85a95ae5a521
tree51acef42c7d8c85ddb15ccf5a277a2c4a63ef7ee
parent58a61f99620d635fcdaf84c9b1818b79e11d28c5
[media] lirc: validate transmission ir data

The lirc interface allows 255 u32 spaces and pulses, which are usec. If
the driver can handle this (e.g. winbond-cir) you can produce hours of
meaningless IR data and there is no method of interrupting it.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/ir-lirc-codec.c