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

Commit 2744b888 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
  slub: Fix slub_lock down/up imbalance
parents 1ca7318c 68cee4f1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3273,9 +3273,9 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
		kfree(n);
		kfree(s);
	}
err:
	up_write(&slub_lock);

err:
	if (flags & SLAB_PANIC)
		panic("Cannot create slabcache %s\n", name);
	else
@@ -3862,6 +3862,7 @@ static ssize_t show_slab_objects(struct kmem_cache *s,
			x += sprintf(buf + x, " N%d=%lu",
					node, nodes[node]);
#endif
	up_read(&slub_lock);
	kfree(nodes);
	return x + sprintf(buf + x, "\n");
}