[U-Boot] [PATCH v3] mips32: fix wrong loop bound in flush_cache()

Shinya Kuribayashi skuribay at pobox.com
Fri Aug 12 04:43:04 CEST 2011


Hi,

On 08/10/2011 04:11 PM, Yao Cheng wrote:
> 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.
> To fix this issue I skipped the operations when "size" is found to be zero.

It feels like the last sentence is somewhat redundant (the diff output
speaks for itself), so omitted.  Other than that, the patch is ok and
queued up to u-boot-mips/master.  If no MIPS patches come up within a
couple of weeks, I'll make a pull request.

Thanks for your report,


More information about the U-Boot mailing list