diff options
| author | Manfred Spraul <[email protected]> | 2008-12-10 17:17:06 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-12-10 21:34:33 +0000 |
| commit | 711a49a07f84f914aac26a52143f6e7526571143 (patch) | |
| tree | 3ca4f774f868c1884bc6dc416ea68aa7b8666ef7 /net/unix/af_unix.c | |
| parent | MN10300: Give correct size when reserving interrupt vector table (diff) | |
| download | kernel-711a49a07f84f914aac26a52143f6e7526571143.tar.gz kernel-711a49a07f84f914aac26a52143f6e7526571143.zip | |
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
