diff options
author | 2025-05-08 15:06:08 +0200 | |
---|---|---|
committer | 2025-05-12 15:12:44 +0200 | |
commit | 2f0c6fceae0df59a9c0edb5d41529b90ee9f2fcb (patch) | |
tree | 75b2557f2f634ec460089cf438df8ff73ca9e149 /scripts/lib/kdoc/kdoc_files.py | |
parent | drm/tiny: panel-mipi-dbi: Use drm_client_setup_with_fourcc() (diff) | |
download | linux-rng-2f0c6fceae0df59a9c0edb5d41529b90ee9f2fcb.tar.xz linux-rng-2f0c6fceae0df59a9c0edb5d41529b90ee9f2fcb.zip |
accel/ivpu: Use effective buffer size for zero terminator
Use the effective written size instead of original size as index for zero
termination. If the input from user-space is to larger and the input is
truncated, the original size is out-of-bound.
Since there is an upfront size check here, the change is for consistency.
Signed-off-by: Markus Burri <markus.burri@mt.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://lore.kernel.org/r/20250508130612.82270-3-markus.burri@mt.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions