diff options
author | Will Deacon <[email protected]> | 2012-02-21 12:29:03 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-03-30 12:17:33 +0100 |
commit | 5a4f5da543b169d555a19e889850780ddceb8f98 (patch) | |
tree | 802459fee3ff4855a99a68145fe0a9f7c5b8782a /net/lapb/lapb_timer.c | |
parent | fa0d1dbf7fb6b6f1af85d298a4054fe9edc914c9 (diff) |
ARM: 7337/1: ptrace: fix ptrace_read_user for !CONFIG_MMU platforms
Commit 68b7f715 ("nommu: ptrace support") added definitions for
PT_TEXT_ADDR and friends, as well as adding ptrace support for reading
from these magic offsets.
Unfortunately, this has probably never worked, since ptrace_read_user
predicates reading on off < sizeof(struct user), returning -EIO
otherwise.
This patch moves the offset size check until after we have tried to
match it against either a magic value or an offset into pt_regs.
Cc: Paul Brook <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions