From: David S. Miller Date: Thu, 29 Sep 2005 04:06:47 +0000 (-0700) Subject: [SPARC64]: Simplify user fault fixup handling. X-Git-Tag: v2.6.14-rc3~33^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efdc1e2083e04cc70721d55803889b346c1a3de2;p=pandora-kernel.git [SPARC64]: Simplify user fault fixup handling. Instead of doing byte-at-a-time user accesses to figure out where the fault occurred, read the saved fault_address from the current thread structure. For the sake of defensive programming, if the fault_address does not fall into the user buffer range, simply assume the whole area faulted. This will cause the fixup for copy_from_user() to clear the entire kernel side buffer. Signed-off-by: David S. Miller --- Reading git-diff-tree failed