diff options
author | Mark Nelson <markn@au1.ibm.com> | 2009-02-25 13:46:24 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-26 14:02:54 +1100 |
commit | f72b728bf100f276628e378e1fe6c6acd5d09401 (patch) | |
tree | edc7e3f0ad62669a188c24d92831565dc5c35bfd /arch/powerpc/lib/dma-noncoherent.c | |
parent | e423b9ecd6aa434ce9ba72a21fdc61079e620e0a (diff) |
powerpc: Fix 64bit __copy_tofrom_user() regression
This fixes a regression introduced by commit
a4e22f02f5b6518c1484faea1f88d81802b9feac ("powerpc: Update 64bit
__copy_tofrom_user() using CPU_FTR_UNALIGNED_LD_STD").
The same bug that existed in the 64bit memcpy() also exists here so fix
it here too. The fix is the same as that applied to memcpy() with the
addition of fixes for the exception handling code required for
__copy_tofrom_user().
This stops us reading beyond the end of the source region we were told
to copy.
Signed-off-by: Mark Nelson <markn@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/lib/dma-noncoherent.c')
0 files changed, 0 insertions, 0 deletions