diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-07-29 22:02:53 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-08-03 17:52:45 +0100 |
commit | ea85a0e4cc870d2bb92e3b2007007901209bb7de (patch) | |
tree | a7910ce9a26cebf2a33af96eccc2d9a3f7f39b7c /arch/mips/ar7 | |
parent | dd34b5a82feadfaee4f8dea83a694d9349f94a28 (diff) | |
download | linux-stable-ea85a0e4cc870d2bb92e3b2007007901209bb7de.tar.gz linux-stable-ea85a0e4cc870d2bb92e3b2007007901209bb7de.tar.bz2 linux-stable-ea85a0e4cc870d2bb92e3b2007007901209bb7de.zip |
MIPS: Fix read buffer overflow
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r-- | arch/mips/ar7/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/ar7/prom.c b/arch/mips/ar7/prom.c index a320bceb2f9d..5ad6f1db6567 100644 --- a/arch/mips/ar7/prom.c +++ b/arch/mips/ar7/prom.c @@ -144,7 +144,7 @@ static char * __init lookup_psp_var_map(u8 num) { int i; - for (i = 0; i < sizeof(psp_var_map); i++) + for (i = 0; i < ARRAY_SIZE(psp_var_map); i++) if (psp_var_map[i].num == num) return psp_var_map[i].value; |