From: Manfred Spraul Date: Wed, 10 Dec 2008 17:17:06 +0000 (+0100) Subject: lib/idr.c: Fix bug introduced by RCU fix X-Git-Tag: v2.6.28-rc8~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711a49a07f84f914aac26a52143f6e7526571143;p=pandora-kernel.git lib/idr.c: Fix bug introduced by RCU fix The last patch to lib/idr.c caused a bug if idr_get_new_above() was called on an empty idr. Usually, nodes stay on the same layer. New layers are added to the top of the tree. The exception is idr_get_new_above() on an empty tree: In this case, the new root node is first added on layer 0, then moved upwards. p->layer was not updated. As usual: You shall never rely on the source code comments, they will only mislead you. Signed-off-by: Manfred Spraul Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed