summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorEthan Tidmore <ethantidmore06@gmail.com>2026-02-25 16:24:53 -0600
committerNamjae Jeon <linkinjeon@kernel.org>2026-02-26 18:26:00 +0900
commit40c31f0563ec10e5b112be35e2e003f8ce4afe98 (patch)
treefca3e2d60b56bfdbc0cb8185f33a51bb702da768 /tools/perf/scripts/python/bin/stackcollapse-record
parent2dec6931ee04cab66658a50f6dbe5dd5a2cf4de2 (diff)
ntfs: Fix null pointer dereference
The variable ctx can be null and once confirmed to be null in its error path goes to label err_out. Once there it can be immediately dereferenced by the function ntfs_attr_put_search_ctx() which has no null pointer check. Detected by Smatch: fs/ntfs/ea.c:687 ntfs_new_attr_flags() error: we previously assumed 'ctx' could be null (see line 577) Add null pointer check before running ntfs_attr_put_search_ctx() in error path. 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