summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2022-11-03 00:23:35 +0300
committerHans de Goede <hdegoede@redhat.com>2022-11-16 10:48:19 +0300
commit84fa20c2a56a9d941fef68dd2c1d489a5f24daa7 (patch)
treea33cf8ed613e300a043894b989d7c4c7071f70e4 /tools/perf/scripts/python/stackcollapse.py
parent93b962ddd69a11c956e40b26e494132c514608a9 (diff)
downloadlinux-84fa20c2a56a9d941fef68dd2c1d489a5f24daa7.tar.xz
platform/x86: dell-ddv: Improve buffer handling
When the DDV interface returns a buffer, it actually returns a acpi buffer containing an integer (buffer size) and another acpi buffer (buffer content). The size of the buffer may be smaller than the size of the buffer content, which is perfectly valid and should not be treated as an error. Also use the buffer size instead of the buffer content size when accessing the buffer to prevent accessing bogus data. Tested on a Dell Inspiron 3505. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20221102212336.380257-1-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions