diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-09-28 21:06:47 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-09-28 21:06:47 -0700 |
commit | efdc1e2083e04cc70721d55803889b346c1a3de2 (patch) | |
tree | 9f24fab33f795a69bb2dc43a8f3613392762ff02 /include/linux/kbd_diacr.h | |
parent | 5fd29752f09cabff582f65c0ce35518db4c64937 (diff) | |
download | blackbird-op-linux-efdc1e2083e04cc70721d55803889b346c1a3de2.tar.gz blackbird-op-linux-efdc1e2083e04cc70721d55803889b346c1a3de2.zip |
[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 <davem@davemloft.net>
Diffstat (limited to 'include/linux/kbd_diacr.h')
0 files changed, 0 insertions, 0 deletions