media: rc: ensure we do not read out of bounds
authorSean Young <sean@mess.org>
Mon, 7 Aug 2017 13:21:29 +0000 (09:21 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:57:54 +0000 (09:57 -0400)
commit2168b416c8326cc2edff9d986feebc569cf9ec10
treef919b0e514ef8b181e89eea8c72e1b459f3e4064
parent86fe1ac0d563477b1d10d49a92237e3f3d74e7be
media: rc: ensure we do not read out of bounds

If rc_validate_filter() is called for CEC or XMP, then we would read
beyond the end of the array.

Suggested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/rc-main.c