• Davide Libenzi's avatar
    epoll: avoid kmemcheck warning · cdac75e6
    Davide Libenzi authored
    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: default avatarDavide Libenzi <davidel@xmailserver.org>
    Cc: Vegard Nossum <vegard.nossum@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cdac75e6
eventpoll.c 36.1 KB