diff options
author | Davide Libenzi <davidel@xmailserver.org> | 2008-04-29 09:58:34 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:05:59 +0200 |
commit | cdac75e6f2fec9abc21d0abb4e5d80720eeebb10 (patch) | |
tree | 0962ee591a96d5ebbd8e572b4aa05fe725754eb2 /include | |
parent | make /dev/kmem a config option (diff) | |
download | linux-cdac75e6f2fec9abc21d0abb4e5d80720eeebb10.tar.xz linux-cdac75e6f2fec9abc21d0abb4e5d80720eeebb10.zip |
epoll: avoid kmemcheck warning
Epoll calls rb_set_parent(n, n) to initialize the rb-tree node, but
rb_set_parent() accesses node's pointer in its code. This creates a
warning in kmemcheck (reported by Vegard Nossum) about an uninitialized
memory access. The warning is harmless since the following rb-tree node
insert is going to overwrite the node data. In any case I think it's
better to not have that happening at all, and fix it by simplifying the
code to get rid of a few lines that became superfluous after the previous
epoll changes.
Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions