X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Finotify.c;h=1f50302849c53ce8c674fd71416777713de9009b;hb=f7a014af2d76a96e5af51b64f954328b700fa62f;hp=367c487c014b6f62db3c04811ad56e3bec4cc0df;hpb=4b6f5d20b04dcbc3d888555522b90ba6d36c4106;p=powerpc.git diff --git a/fs/inotify.c b/fs/inotify.c index 367c487c01..1f50302849 100644 --- a/fs/inotify.c +++ b/fs/inotify.c @@ -538,7 +538,7 @@ void inotify_d_instantiate(struct dentry *entry, struct inode *inode) WARN_ON(entry->d_flags & DCACHE_INOTIFY_PARENT_WATCHED); spin_lock(&entry->d_lock); parent = entry->d_parent; - if (inotify_inode_watched(parent->d_inode)) + if (parent->d_inode && inotify_inode_watched(parent->d_inode)) entry->d_flags |= DCACHE_INOTIFY_PARENT_WATCHED; spin_unlock(&entry->d_lock); }