diff options
| author | Ethan Tidmore <ethantidmore06@gmail.com> | 2026-02-26 10:09:04 -0600 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-02-27 18:43:38 +0900 |
| commit | c418e96754100a9cafd7bff32c83cad746f32781 (patch) | |
| tree | eb35df4faffce0f76b8207c29de7a681830a8e3c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7c76484fbb222e82f1db34009eb441d08db0a158 (diff) | |
ntfs: Place check before dereference
The variable ni has the possiblity of being null and is checked for it
but, only after it was dereferenced in a log message.
Put check before dereference.
Detected by Smatch:
fs/ntfs/attrib.c:2115 ntfs_resident_attr_record_add() warn:
variable dereferenced before check 'ni' (see line 2111)
fs/ntfs/attrib.c:2237 ntfs_non_resident_attr_record_add() warn:
variable dereferenced before check 'ni' (see line 2232)
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
