We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eff7d6 commit d63385aCopy full SHA for d63385a
mm/kmemleak.c
@@ -1152,6 +1152,7 @@ EXPORT_SYMBOL_GPL(kmemleak_free_percpu);
1152
void __ref kmemleak_update_trace(const void *ptr)
1153
{
1154
struct kmemleak_object *object;
1155
+ depot_stack_handle_t trace_handle;
1156
unsigned long flags;
1157
1158
pr_debug("%s(0x%px)\n", __func__, ptr);
@@ -1168,8 +1169,9 @@ void __ref kmemleak_update_trace(const void *ptr)
1168
1169
return;
1170
}
1171
1172
+ trace_handle = set_track_prepare();
1173
raw_spin_lock_irqsave(&object->lock, flags);
- object->trace_handle = set_track_prepare();
1174
+ object->trace_handle = trace_handle;
1175
raw_spin_unlock_irqrestore(&object->lock, flags);
1176
1177
put_object(object);
0 commit comments