[PATCH] cfi_cmdset_0001: fix range for cache invalidation
authorAlexey Korolev <alexey.korolev@intel.com>
Tue, 21 Feb 2006 02:27:55 +0000 (18:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 21 Feb 2006 04:00:09 +0000 (20:00 -0800)
commitd86d43706a27bb87c2873de369f94a10f8758063
tree58b59f28120448b529b76cc24c5076a113e5af08
parent7d4c8e56109e0799ab9fb644c08a8daf4a026675
[PATCH] cfi_cmdset_0001: fix range for cache invalidation

I found an issue in cfi_cmdset0001.c.  It is related to cache region
invalidation in the buffered write procedure.

The code performs cache invalidation from "cmd_addr" to "cmd_adr + len" in
do_write_buffer() while we modify region from "adr" to "adr+len".

This issue affects writes + reads of data by small chunks.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/chips/cfi_cmdset_0001.c