diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 8bb5507e822f..43dd540663af 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -645,13 +645,11 @@ v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, | |||
645 | P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", err); | 645 | P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", err); |
646 | goto error; | 646 | goto error; |
647 | } | 647 | } |
648 | d_instantiate(dentry, inode); | ||
649 | err = v9fs_fid_add(dentry, fid); | 648 | err = v9fs_fid_add(dentry, fid); |
650 | if (err < 0) | 649 | if (err < 0) |
651 | goto error; | 650 | goto error; |
652 | 651 | d_instantiate(dentry, inode); | |
653 | return ofid; | 652 | return ofid; |
654 | |||
655 | error: | 653 | error: |
656 | if (ofid) | 654 | if (ofid) |
657 | p9_client_clunk(ofid); | 655 | p9_client_clunk(ofid); |