From: Arnd Bergmann Date: Tue, 11 Apr 2006 05:54:31 +0000 (-0700) Subject: [PATCH] inotify: check for NULL inode in inotify_d_instantiate X-Git-Tag: v2.6.17-rc2~174 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=091e881d0e55496d8887b61446ae1c598b0995b6;p=pandora-kernel.git [PATCH] inotify: check for NULL inode in inotify_d_instantiate The spufs file system creates files in a directory before instantiating the directory itself, which causes a NULL pointer access in inotify_d_instantiate since c32ccd87bfd1414b0aabfcd8dbc7539ad23bcbaa. I'd like to keep this behavior since it means that the user will not have access to files in the directory before I know that I succeed in creating everything in it. This patch adds a simple check for the inode to keep that working. Signed-off-by: Arnd Bergmann Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed