]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc32: Fix __copy_tofrom_user return value
authorPaul Mackerras <paulus@samba.org>
Fri, 20 May 2005 06:50:55 +0000 (16:50 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 May 2005 14:54:10 +0000 (07:54 -0700)
commitf1ed8bc7a5d8b948d0835d3647cfd8eb9fb7fd47
tree958a49f87b40c6a208d95f85e5e93f2f39b77d3d
parent968d4e15cfc547ab5dd56c6871ff4181aff754c0
[PATCH] ppc32: Fix __copy_tofrom_user return value

Recently the __copy_tofrom_user routine was modified to avoid doing
prefetches past the end of the source array.  However, in doing so we
introduced a bug in that it now returns the wrong value for the number
of bytes not copied when a fault is encountered.  This fixes it to
return the correct number.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/lib/string.S