Skip to content

Commit

Permalink
cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from …
Browse files Browse the repository at this point in the history
…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 <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
Pali Rohár authored and Steve French committed Feb 19, 2025
1 parent 9df2380 commit cad3fc0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/smb/client/reparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,13 +1088,12 @@ int parse_reparse_point(struct reparse_data_buffer *buf,
le32_to_cpu(buf->ReparseTag));
return -EIO;
}
break;
return 0;
default:
cifs_tcon_dbg(VFS | ONCE, "unhandled reparse tag: 0x%08x\n",
le32_to_cpu(buf->ReparseTag));
break;
return -EOPNOTSUPP;
}
return 0;
}

int smb2_parse_reparse_point(struct cifs_sb_info *cifs_sb,
Expand Down

0 comments on commit cad3fc0

Please sign in to comment.