cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_po...
authorPali Rohár <pali@kernel.org>
Tue, 17 Sep 2024 22:16:05 +0000 (00:16 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Feb 2025 16:42:25 +0000 (10:42 -0600)
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>
fs/smb/client/reparse.c

index 0a5a52a8a7dd11135ba5ecea42c79164bfdb7e07..2b9e9885dc425829d6c2a25a4494d8d3644964e8 100644 (file)
@@ -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,