Skip to content

Commit 10cbae8

Browse files
paligregkh
authored andcommitted
cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()
[ Upstream commit cad3fc0 ] This would help to track and detect by caller if the reparse point type was processed or not. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 474c087 commit 10cbae8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/smb/client/reparse.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,13 +656,12 @@ int parse_reparse_point(struct reparse_data_buffer *buf,
656656
le32_to_cpu(buf->ReparseTag));
657657
return -EIO;
658658
}
659-
break;
659+
return 0;
660660
default:
661661
cifs_tcon_dbg(VFS | ONCE, "unhandled reparse tag: 0x%08x\n",
662662
le32_to_cpu(buf->ReparseTag));
663-
break;
663+
return -EOPNOTSUPP;
664664
}
665-
return 0;
666665
}
667666

668667
int smb2_parse_reparse_point(struct cifs_sb_info *cifs_sb,

0 commit comments

Comments
 (0)