diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-10 13:59:03 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-14 11:19:19 +0300 |
commit | 1fad33f04ed1fd14049cda6a35faa4abc0886201 (patch) | |
tree | 17f17b8f7ebe0d8e016de6ada06c8480059d48be /tools/perf/scripts/python/stackcollapse.py | |
parent | 895452ae48c1e179df509b6184227a5ea40b4f38 (diff) | |
download | linux-1fad33f04ed1fd14049cda6a35faa4abc0886201.tar.xz |
drm/udl: Return error if vendor descriptor is too short
There need to be least 5 bytes in the vendor descriptor. Return
an error otherwise. Also change the branching to early-out on
the error. Adjust indention of the rest of the parser function.
The original length test expected more than 5 bytes in the vendor
descriptor. As a descriptor with no key-value pairs has exactly 5
bytes and is still valid, change the test to accept this case as
well.
v2
- clarify changes to length test in commit description (Patrik)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://lore.kernel.org/r/20250410105948.25463-7-tzimmermann@suse.de
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions