On Tue, Aug 09, 2011 at 09:41:33AM +0400, Pavel Shilovsky wrote: > > ? ? ? ? ? ? ? ?mutex_unlock(&dir->i_mutex); > > ? ? ? ? ? ? ? ?dput(dentry); > > ? ? ? ? ? ? ? ?dentry = child; > > + ? ? ? ? ? ? ? if (!dentry->d_inode) { > > dentry can be NULL here (returned from lookup_one_len) and it can > cause a null pointer dereference. Not NULL, ERR_PTR(...). IOW, we need to check IS_ERR(dentry) to protect that check of dentry->d_inode. -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html