diff options
| author | Xu Rao <raoxu@uniontech.com> | 2026-06-08 14:31:47 +0800 |
|---|---|---|
| committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-06-08 12:47:28 +0200 |
| commit | c1bef05763c94ae284ee2881c03bf0753f8d213a (patch) | |
| tree | f22b789ecca575e6ffa95653c705394fc1f886fd /scripts/dummy-tools/python3 | |
| parent | 503c5ae1e72aa9ed91925dafa3d82ee2e992747f (diff) | |
thunderbolt: debugfs: Fix sideband write size check
sb_regs_write() looks up the matching sideband register entry before
validating the number of bytes to write.
However, the size check uses sb_regs->size, which is the size of the
first entry in the register table, instead of the matched entry. This
rejects valid writes to larger sideband registers such as USB4_SB_DEBUG
or USB4_SB_DATA.
Use the matched register entry for the size check.
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
