irda: Test index before read in stir421x_patch_device()
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 4 Oct 2010 23:30:02 +0000 (01:30 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 11 Oct 2010 00:11:58 +0000 (02:11 +0200)
commit3b06dbbeadb6488cd00999b61b080bb6f0218503
treef2a7e56464f6e82de25318c934d07bf6246b39cf
parentf8cba16cad68c9b9ee7fecae48a1b91708e8e482
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>
drivers/net/irda/irda-usb.c