irda: Test index before read in stir421x_patch_device()

Test whether index exceeds fw->size before reading the element

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
This commit is contained in:
Roel Kluin 2010-10-05 01:30:02 +02:00 • committed by Samuel Ortiz
commit 3b06dbbead