Skip to content

Commit 0e1b951

Browse files
committed
Merge branch 'for-5.18/selftests-fixes' into for-next
2 parents fa2d8af + 5e6ded2 commit 0e1b951

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/livepatch/livepatch-shadow-fix1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ static void livepatch_fix1_dummy_leak_dtor(void *obj, void *shadow_data)
109109
void *d = obj;
110110
int **shadow_leak = shadow_data;
111111

112-
kfree(*shadow_leak);
113112
pr_info("%s: dummy @ %p, prevented leak @ %p\n",
114113
__func__, d, *shadow_leak);
114+
kfree(*shadow_leak);
115115
}
116116

117117
static void livepatch_fix1_dummy_free(struct dummy *d)

samples/livepatch/livepatch-shadow-fix2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ static void livepatch_fix2_dummy_leak_dtor(void *obj, void *shadow_data)
6161
void *d = obj;
6262
int **shadow_leak = shadow_data;
6363

64-
kfree(*shadow_leak);
6564
pr_info("%s: dummy @ %p, prevented leak @ %p\n",
6665
__func__, d, *shadow_leak);
66+
kfree(*shadow_leak);
6767
}
6868

6969
static void livepatch_fix2_dummy_free(struct dummy *d)

0 commit comments

Comments
 (0)