[ARM] pxa: ensure mfp is in correct range in mfp_{read,write}
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 13 Nov 2009 10:37:34 +0000 (11:37 +0100)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 16 Nov 2009 16:50:10 +0000 (00:50 +0800)
commit7df56c2586049a06b007474ca059779c81ddb1ff
tree3853675bae18a130b5ed98d084c38c730663c6cd
parent10d5d99e880692a31ddc59b9f5d063e928fc0c89
[ARM] pxa: ensure mfp is in correct range in mfp_{read,write}

Ensure we do not read/write outside array boundaries with a negative index.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/plat-pxa/mfp.c