Blackfin: fix read buffer overflow
commitac860751eb2cb1bdf8bb341d849b38c483f5d83b
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 2 Aug 2009 12:26:48 +0000 (2 14:26 +0200)
committerMike Frysinger <vapier@gentoo.org>
Thu, 17 Sep 2009 02:10:13 +0000 (16 22:10 -0400)
tree15822847c84aa55a4344a3c92ed334974ee65472
parent0e101ec12e68f25dd769a4b7ecb5e7ead0aae7c0
Blackfin: 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: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/bfin_dma_5xx.c