summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-08-09 00:14:48 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-08-09 21:58:11 -0700
commit0b274050c4d427828595c12c2e4e53d98612b4f9 (patch)
tree0c88af19fe668d13a127e78f2d4d4b3730a155a3 /scripts/stackusage
parent9a142beb1eba42b986dc7016f4fc1a3bc28b8c09 (diff)
downloadlinux-0b274050c4d427828595c12c2e4e53d98612b4f9.tar.gz
linux-0b274050c4d427828595c12c2e4e53d98612b4f9.zip
perf python: Validate attribute setters in pyrf_evsel
If val is NULL when setting an attribute, PyErr_SetString should be called as deleting the attribute isn't supported. In addition, ensure PyErr_Occurred is checked before setting the attribute to avoid setting a garbage value. Fixes: 877108e42b1b ("perf tools: Initial python binding") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions