diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-02-09 16:07:32 +0100 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-02-09 16:14:33 +0100 |
| commit | c5226b96c08a010ebef5fdf4c90572bcd89e4299 (patch) | |
| tree | df227a345f9a527a93f5f2f3331644bbe7cf1412 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | c1f221c1be6f641506d647297062ce5d21d03867 (diff) | |
fs/ntfs3: avoid calling run_get_entry() when run == NULL in ntfs_read_run_nb_ra()
When ntfs_read_run_nb_ra() is invoked with run == NULL the code later
assumes run is valid and may call run_get_entry(NULL, ...), and also
uses clen/idx without initializing them. Smatch reported uninitialized
variable warnings and this can lead to undefined behaviour. This patch
fixes it.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202512230646.v5hrYXL0-lkp@intel.com/
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
