ARM: STMP3xxx: deallocation with negative index of descriptors[]
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 18 Sep 2009 19:44:18 +0000 (12:44 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Sep 2009 11:14:05 +0000 (12:14 +0100)
commit2cc0bab8616a3d0ae1bae11f5cf16a582424aa91
tree802989f473cdaa13a15b6428e0ff54519b332737
parentba978365031dbe84ee8ba2d7977cb667f40caf04
ARM: STMP3xxx: deallocation with negative index of descriptors[]

The last deallocation is invalid. In the last iteration, i is -1.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: dmitry pervushin <dpervushin@embeddedalley.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-stmp3xxx/dma.c