diff options
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index b25f8947ed7a..75e0cd847bd6 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -657,10 +657,7 @@ restore: | |||
657 | tsk, true); | 657 | tsk, true); |
658 | thread->ptrace_bps[i] = NULL; | 658 | thread->ptrace_bps[i] = NULL; |
659 | 659 | ||
660 | if (!bp) { /* incorrect bp, or we have a bug in bp API */ | 660 | /* Incorrect bp, or we have a bug in bp API */ |
661 | rc = -EINVAL; | ||
662 | break; | ||
663 | } | ||
664 | if (IS_ERR(bp)) { | 661 | if (IS_ERR(bp)) { |
665 | rc = PTR_ERR(bp); | 662 | rc = PTR_ERR(bp); |
666 | bp = NULL; | 663 | bp = NULL; |
@@ -729,9 +726,6 @@ static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, | |||
729 | tsk, | 726 | tsk, |
730 | bp->attr.disabled); | 727 | bp->attr.disabled); |
731 | } | 728 | } |
732 | |||
733 | if (!bp) | ||
734 | return -EIO; | ||
735 | /* | 729 | /* |
736 | * CHECKME: the previous code returned -EIO if the addr wasn't a | 730 | * CHECKME: the previous code returned -EIO if the addr wasn't a |
737 | * valid task virtual addr. The new one will return -EINVAL in this | 731 | * valid task virtual addr. The new one will return -EINVAL in this |