From: Davide Libenzi Date: Sat, 17 Sep 2005 02:28:06 +0000 (-0700) Subject: [PATCH] epoll: fix delayed initialization bug X-Git-Tag: v2.6.14-rc2~5^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d2be79d5981b7efc8c5ec1169613bba95bde20;p=pandora-kernel.git [PATCH] epoll: fix delayed initialization bug Al found a potential problem in epoll_create(), where the file->private_data member was set after fd_install(). This is obviously wrong since another thread might do a close() on that fd# before we set the file->private_data member. This goes over 2.6.13 and passes a few basic tests I've done here. (akpm: snuck in a kzalloc() cleanup too) Signed-off-by: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed