aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/link.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index a5c2812ead68..5657416d3483 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -343,9 +343,11 @@ cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
343 if (rc) 343 if (rc)
344 return rc; 344 return rc;
345 345
346 if (file_info.EndOfFile != cpu_to_le64(CIFS_MF_SYMLINK_FILE_SIZE)) 346 if (file_info.EndOfFile != cpu_to_le64(CIFS_MF_SYMLINK_FILE_SIZE)) {
347 rc = -ENOENT;
347 /* it's not a symlink */ 348 /* it's not a symlink */
348 goto out; 349 goto out;
350 }
349 351
350 io_parms.netfid = fid.netfid; 352 io_parms.netfid = fid.netfid;
351 io_parms.pid = current->tgid; 353 io_parms.pid = current->tgid;