MIPS: mips32: fix wrong loop bound in flush_cache()
authorYao Cheng <saturdaycoder@gmail.com>
Wed, 10 Aug 2011 07:11:16 +0000 (15:11 +0800)
committerShinya Kuribayashi <skuribay@pobox.com>
Sat, 3 Sep 2011 01:43:45 +0000 (10:43 +0900)
commitdc344589ded4fb4d63ba7f0cdf670e2ffcf5e5a0
treec75ea0e6061e2dd40ef82d4a131818e8e65b2621
parenta1118d60423c1fe25afc9df9015f72739f96fd67
MIPS: mips32: fix wrong loop bound in flush_cache()

The issue is found when calling flush_cache() with zero "size" argument.
The bound of loop is miscalculated in this case and flush_cache() enters
a wrong flushing loop.

Signed-off-by: Yao Cheng <saturdaycoder@gmail.com>
Cc: Shinya Kuribayashi <skuribay@pobox.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Shinya Kuribayashi <skuribay@pobox.com>
arch/mips/cpu/mips32/cpu.c