diff options
| author | Ali Ahmet Memiş <aliamemis@disroot.org> | 2026-10-24 20:44:41 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-29 11:08:26 +0100 |
| commit | 7cfb037005c04b9dee5b0c4626e56e2eddeef157 (patch) | |
| tree | c569999bf77f796e6e5267c42d19addbb9390536 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 89aaaa26f6985d55676fc5c90440f279733fa132 (diff) | |
usb: typec: ucsi: debugfs: Fix GET commands on UCSI < 2.0
Since the debugfs response buffer grew to 24 bytes, every GET command
fails with -EINVAL on UCSI < 2.0, where the data length is limited to 16
bytes. Clamp the length to UCSI_MAX_DATA_LENGTH().
Fixes: d9dc19910321 ("usb: typec: ucsi: Fix debugfs response truncation beyond 16 bytes")
Cc: stable <stable@kernel.org>
Signed-off-by: Ali Ahmet Memiş <aliamemis@disroot.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20261024174441.878903-1-aliamemis@disroot.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
