diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 92aee08483a5..28bc8ee97056 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -438,8 +438,10 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, | |||
438 | CIFS_MOUNT_MAP_SPECIAL_CHR); | 438 | CIFS_MOUNT_MAP_SPECIAL_CHR); |
439 | else { | 439 | else { |
440 | server = tcon->ses->server; | 440 | server = tcon->ses->server; |
441 | if (!server->ops->create_hardlink) | 441 | if (!server->ops->create_hardlink) { |
442 | return -ENOSYS; | 442 | rc = -ENOSYS; |
443 | goto cifs_hl_exit; | ||
444 | } | ||
443 | rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, | 445 | rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, |
444 | cifs_sb); | 446 | cifs_sb); |
445 | if ((rc == -EIO) || (rc == -EINVAL)) | 447 | if ((rc == -EIO) || (rc == -EINVAL)) |