Skip to content

Commit 07bdf92

Browse files
decarvSteve French
authored andcommitted
smb: client: change return value in open_cached_dir_by_dentry() if !cfids
Change return value from -ENOENT to -EOPNOTSUPP to maintain consistency with the return value of open_cached_dir() for the same case. This change is safe as the only calling function does not differentiate between these return values. Reviewed-by: Paulo Alcantara (Red Hat) <[email protected]> Reviewed-by: Enzo Matsumiya <[email protected]> Signed-off-by: Henrique Carvalho <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent ceaf145 commit 07bdf92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ int open_cached_dir_by_dentry(struct cifs_tcon *tcon,
391391
struct cached_fids *cfids = tcon->cfids;
392392

393393
if (cfids == NULL)
394-
return -ENOENT;
394+
return -EOPNOTSUPP;
395395

396396
spin_lock(&cfids->cfid_list_lock);
397397
list_for_each_entry(cfid, &cfids->entries, entry) {

0 commit comments

Comments
 (0)