lkml.org 
[lkml]   [2022]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] kprobes: fix the comments error
Date
From: zhangduo <zhangduo@kylinos.cn>

fix the comments 'Copy the insn slot of ap to p'

Signed-off-by: zhangduo <zhangduo@kylinos.cn>
---
kernel/kprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index f1dddc8fe..8bcef7d3c 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1349,7 +1349,7 @@ static int register_aggr_kprobe(struct kprobe *orig_p, struct kprobe *p)
| KPROBE_FLAG_DISABLED;
}

- /* Copy the insn slot of 'p' to 'ap'. */
+ /* Copy the insn slot of 'ap' to 'p'. */
copy_kprobe(ap, p);
ret = add_new_kprobe(ap, p);

--
2.25.1
\
 
 \ /
  Last update: 2022-07-22 08:25    [W:0.695 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site