[media] vivid-radio-rx: Don't go past buffer
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 23:00:55 +0000 (20:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 17:28:58 +0000 (14:28 -0300)
commit322583c410b6206700f5daa98f965b31c99bb8c2
tree0cffb1bd5963acb8cd6493865d35263c2adad85a
parent094af36a3a57ddfeb942fd2990f15b570430a81e
[media] vivid-radio-rx: Don't go past buffer

drivers/media/platform/vivid/vivid-radio-rx.c:198 vivid_radio_rx_s_hw_freq_seek() error: buffer overflow 'vivid_radio_bands' 3 <= 3

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-radio-rx.c