]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix potencial corruption
authorRalf Baechle <ralf@linux-mips.org>
Sat, 9 Jun 2012 19:48:47 +0000 (20:48 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Dec 2012 17:15:27 +0000 (18:15 +0100)
commitd06f96fd6e44eb62fcadf9510e8a71edfa1b3f5e
tree9eba907d769432ef0704f3eaa64416395eb5c967
parent750ff8494e5f1093f2be1d6aad70fee269d4ceea
MIPS: Fix potencial corruption

Normally r4k_dma_cache_inv should only ever be called with cacheline
aligned addresses.  If however, it isn't there is the theoretical
possibility of data corruption.  There is no correct way of handling this
and anyway, it should only happen if the DMA API is used incorrectly
so drop

There is a different corruption scenario with these CACHE instructions
removed but again there is no way of handling this correctly and it can
be triggered only through incorrect use of the DMA API.

So just get rid of the complexity.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: James Rodriguez <jamesr@juniper.net>
arch/mips/mm/c-r4k.c