diff options
| author | Thomas Richter <[email protected]> | 2024-01-18 13:03:39 +0100 |
|---|---|---|
| committer | Heiko Carstens <[email protected]> | 2024-02-09 13:58:13 +0100 |
| commit | 225d09d6e5f3870560665a1829d2db79330b4c58 (patch) | |
| tree | af427869840fe65a305e527a1a1db017d12dea54 /tools/perf/scripts/python | |
| parent | e98eda926b5d855a9513dcf742107d1e22d1089c (diff) | |
s390/pai: fix attr_event_free upper limit for pai device drivers
When the device drivers are initialized, a sysfs directory
is created. This contains many attributes which are allocated with
kzalloc(). Should it fail, the memory for the attributes already
created is freed in attr_event_free(). Its second parameter is number
of attribute elements to delete. This parameter is off by one.
When i. e. the 10th attribute fails to get created, attributes
numbered 0 to 9 should be deleted. Currently only attributes
numbered 0 to 8 are deleted.
Fixes: 39d62336f5c1 ("s390/pai: add support for cryptography counters")
Reported-by: Sumanth Korikkar <[email protected]>
Signed-off-by: Thomas Richter <[email protected]>
Acked-by: Sumanth Korikkar <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions