OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
livepatch: Reorder to use before freeing a pointer
[uclinux-h8/linux.git]
/
samples
/
livepatch
/
livepatch-shadow-fix1.c
diff --git
a/samples/livepatch/livepatch-shadow-fix1.c
b/samples/livepatch/livepatch-shadow-fix1.c
index
918ce17
..
6701641
100644
(file)
--- a/
samples/livepatch/livepatch-shadow-fix1.c
+++ b/
samples/livepatch/livepatch-shadow-fix1.c
@@
-109,9
+109,9
@@
static void livepatch_fix1_dummy_leak_dtor(void *obj, void *shadow_data)
void *d = obj;
int **shadow_leak = shadow_data;
- kfree(*shadow_leak);
pr_info("%s: dummy @ %p, prevented leak @ %p\n",
__func__, d, *shadow_leak);
+ kfree(*shadow_leak);
}
static void livepatch_fix1_dummy_free(struct dummy *d)