Skip to content

Commit cad3fc0

Browse files
paliSteve French
authored andcommitted
cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()
This would help to track and detect by caller if the reparse point type was processed or not. Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 9df2380 commit cad3fc0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/smb/client/reparse.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,13 +1088,12 @@ int parse_reparse_point(struct reparse_data_buffer *buf,
10881088
le32_to_cpu(buf->ReparseTag));
10891089
return -EIO;
10901090
}
1091-
break;
1091+
return 0;
10921092
default:
10931093
cifs_tcon_dbg(VFS | ONCE, "unhandled reparse tag: 0x%08x\n",
10941094
le32_to_cpu(buf->ReparseTag));
1095-
break;
1095+
return -EOPNOTSUPP;
10961096
}
1097-
return 0;
10981097
}
10991098

11001099
int smb2_parse_reparse_point(struct cifs_sb_info *cifs_sb,

0 commit comments

Comments
 (0)