[media] cx231xx: Don't let an interface number to go past the array
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 19:27:28 +0000 (16:27 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 19:54:04 +0000 (16:54 -0300)
commitdcb78ac761488f59ac16c2e76534c567017ef57b
treef0ebe91d3b6379ce04d9aee06cfc78183428b143
parent139d28826b8e2bc7a9232fde0d2f14812914f501
[media] cx231xx: Don't let an interface number to go past the array

On some newer boards, like HVR-930C HD, the information at
the PCB tables are sometimes higher than the ones actually
available on the device. That causes the probing code to
go past the interfaces array.

Add checks to the interface number before going past the
array.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/cx231xx/cx231xx-cards.c