From: Paul Mackerras Date: Fri, 20 May 2005 06:50:55 +0000 (+1000) Subject: [PATCH] ppc32: Fix __copy_tofrom_user return value X-Git-Tag: v2.6.12-rc5~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72480ef863740c3dc301b0803c9ed6d10716aa11;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed