diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-10 13:59:02 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-14 11:19:19 +0300 |
commit | 895452ae48c1e179df509b6184227a5ea40b4f38 (patch) | |
tree | f533cd7bd1b712baf7b1d93d6a8b69965a681c7b /tools/perf/scripts/python/stackcollapse.py | |
parent | 89323678d8280f4f8e5971124d3aef8a6dfece0a (diff) | |
download | linux-895452ae48c1e179df509b6184227a5ea40b4f38.tar.xz |
drm/udl: Handle errors from usb_get_descriptor()
Reading the vendor descriptor from the udl device can fail with
an error, which the current code fails to capture. Store the return
value in an integer and test for the error. Abort parsing on errors
or treat the value as length on success.
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-6-tzimmermann@suse.de
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions