projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1b211
)
fprobe: Fix smatch type mismatch warning
author
Masami Hiramatsu
<mhiramat@kernel.org>
Wed, 23 Mar 2022 07:35:26 +0000
(16:35 +0900)
committer
Alexei Starovoitov
<ast@kernel.org>
Tue, 29 Mar 2022 02:05:40 +0000
(19:05 -0700)
Fix the type mismatching warning of 'rethook_node vs fprobe_rethook_node'
found by Smatch.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/164802092611.1732982.12268174743437084619.stgit@devnote2
kernel/trace/fprobe.c
patch
|
blob
|
history
diff --git
a/kernel/trace/fprobe.c
b/kernel/trace/fprobe.c
index
8b2dd5b
..
63b2321
100644
(file)
--- a/
kernel/trace/fprobe.c
+++ b/
kernel/trace/fprobe.c
@@
-150,15
+150,15
@@
static int fprobe_init_rethook(struct fprobe *fp, int num)
fp->rethook = rethook_alloc((void *)fp, fprobe_exit_handler);
for (i = 0; i < size; i++) {
- struct rethook_node *node;
+ struct
fprobe_
rethook_node *node;
- node = kzalloc(sizeof(
struct fprobe_rethook_
node), GFP_KERNEL);
+ node = kzalloc(sizeof(
*
node), GFP_KERNEL);
if (!node) {
rethook_free(fp->rethook);
fp->rethook = NULL;
return -ENOMEM;
}
- rethook_add_node(fp->rethook, node);
+ rethook_add_node(fp->rethook,
&node->
node);
}
return 0;
}