diff --git a/[refs] b/[refs] index 4ef9e795c6a9..6126aa43f4ef 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 985e4ff016b5f3d95c12fe8073d1df89300dab3d +refs/heads/master: ea7b4887e7266b93fa0c203cc452a926a0fef4f0 diff --git a/trunk/fs/cifs/dir.c b/trunk/fs/cifs/dir.c index cbe709ad6663..781025be48bc 100644 --- a/trunk/fs/cifs/dir.c +++ b/trunk/fs/cifs/dir.c @@ -356,19 +356,12 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, cifs_create_set_dentry: if (rc != 0) { cFYI(1, "Create worked, get_inode_info failed rc = %d", rc); + CIFSSMBClose(xid, tcon, *fileHandle); goto out; } d_drop(direntry); d_add(direntry, newinode); - /* ENOENT for create? How weird... */ - rc = -ENOENT; - if (!newinode) { - CIFSSMBClose(xid, tcon, *fileHandle); - goto out; - } - rc = 0; - out: kfree(buf); kfree(full_path);