Files
linux/fs
Zijun Hu d1f482108a fs/fs_parse: Remove unused and problematic validate_constant_table()
Remove validate_constant_table() since:

- It has no caller.

- It has below 3 bugs for good constant table array array[] which must
  end with a empty entry, and take below invocation for explaination:
  validate_constant_table(array, ARRAY_SIZE(array), ...)

  - Always return wrong value due to the last empty entry.
  - Imprecise error message for missorted case.
  - Potential NULL pointer dereference since the last pr_err() may use
    @tbl[i].name NULL pointer to print the last empty entry's name.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/20250415-fix_fs-v4-1-5d575124a3ff@quicinc.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-04-21 10:27:59 +02:00
..
2025-03-17 14:02:16 +08:00
2025-03-25 15:57:58 +01:00
2024-12-03 10:40:36 +01:00
2024-08-21 22:32:58 +02:00
2025-02-10 16:47:07 -08:00
2024-12-09 11:34:29 +01:00
2024-12-17 09:16:11 +01:00
2025-02-21 10:32:47 +01:00
2025-04-07 16:19:02 +02:00
2024-11-03 01:28:07 -05:00
2024-11-03 01:28:06 -05:00
2024-11-03 01:28:06 -05:00