diff options
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 81f8bbf12f9f..1fa5f15eaddc 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -470,7 +470,10 @@ v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir, | |||
470 | dentry->d_op = &v9fs_dentry_operations; | 470 | dentry->d_op = &v9fs_dentry_operations; |
471 | 471 | ||
472 | d_instantiate(dentry, inode); | 472 | d_instantiate(dentry, inode); |
473 | v9fs_fid_add(dentry, fid); | 473 | err = v9fs_fid_add(dentry, fid); |
474 | if (err < 0) | ||
475 | goto error; | ||
476 | |||
474 | return ofid; | 477 | return ofid; |
475 | 478 | ||
476 | error: | 479 | error: |