Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88e4ccf2 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Pekka Enberg
Browse files

slub: current is always valid

parent 0937502a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ static void set_track(struct kmem_cache *s, void *object,
	if (addr) {
		p->addr = addr;
		p->cpu = smp_processor_id();
		p->pid = current ? current->pid : -1;
		p->pid = current->pid;
		p->when = jiffies;
	} else
		memset(p, 0, sizeof(struct track));