MIPS: Jazz: Fix read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 31 Jul 2009 12:52:51 +0000 (14:52 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:47 +0000 (17:52 +0100)
commit3d4656d68bad84604f5b01f93e066cd02f77154b
treecf1d8a171d7e9b39d20b671cf3079660e9501a1a
parent64f1815507f207ec54ee6b9ae69c48bd153e83b4
MIPS: Jazz: Fix read buffer overflow

Check whether index is within bounds before testing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/jazz/jazzdma.c