[media] dvb_frontend: Fix possible read out of bounds
authorOle Ernst <olebowle@gmx.com>
Wed, 5 Mar 2014 17:08:15 +0000 (14:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 12 Mar 2014 13:21:09 +0000 (10:21 -0300)
commit0123f29caf65d0adef9f37f439a85d5c2822334e
treeb80ebf82bd8d405edf8a2fb61a8e98e8b021f08e
parent2f9dff3f39f0d6dac9209e2267517aebc1c6f86c
[media] dvb_frontend: Fix possible read out of bounds

Check if index is within bounds _before_ accessing the value.

Signed-off-by: Ole Ernst <olebowle@gmx.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-core/dvb_frontend.c