lkml.org 
[lkml]   [2011]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] MIPS Kprobes: Fix OOPS in arch_prepare_kprobe()
On Tue, Nov 08, 2011 at 11:57:45AM -0800, David Daney wrote:
> On 11/08/2011 09:04 AM, Maneesh Soni wrote:
> [...]
> >
> >diff --git a/arch/mips/kernel/kprobes.c b/arch/mips/kernel/kprobes.c
> >index ee28683..9fb1876 100644
> >--- a/arch/mips/kernel/kprobes.c
> >+++ b/arch/mips/kernel/kprobes.c
> >@@ -25,6 +25,7 @@
> >
> > #include<linux/kprobes.h>
> > #include<linux/preempt.h>
> >+#include<linux/uaccess.h>
> > #include<linux/kdebug.h>
> > #include<linux/slab.h>
> >
> >@@ -118,11 +119,19 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
> > union mips_instruction prev_insn;
> > int ret = 0;
> >
> >- prev_insn = p->addr[-1];
> > insn = p->addr[0];
> >
> >- if (insn_has_delayslot(insn) || insn_has_delayslot(prev_insn)) {
> >- pr_notice("Kprobes for branch and jump instructions are not supported\n");
> >+ if (insn_has_delayslot(insn)) {
> >+ pr_notice("Kprobes for branch and jump instructions are not"
> >+ "supported\n");
>
> Don't wrap these strings.
>
> It is better to go a little bit over 80 columns, than have this.
>
> David Daney

Ok.. will keep that in mind for future patches. This line actually
goes away in patch 4/4.

Thanks
Maneesh


\
 
 \ /
  Last update: 2011-11-09 06:29    [W:0.043 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site