diff options
| author | Ian Rogers <irogers@google.com> | 2026-08-09 00:14:48 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-08-09 21:58:11 -0700 |
| commit | 0b274050c4d427828595c12c2e4e53d98612b4f9 (patch) | |
| tree | 0c88af19fe668d13a127e78f2d4d4b3730a155a3 /scripts/basic | |
| parent | 9a142beb1eba42b986dc7016f4fc1a3bc28b8c09 (diff) | |
| download | linux-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/basic')
0 files changed, 0 insertions, 0 deletions
