aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorMarkus Burri <[email protected]>2025-05-08 13:06:08 +0000
committerJacek Lawrynowicz <[email protected]>2025-05-12 13:12:44 +0000
commit2f0c6fceae0df59a9c0edb5d41529b90ee9f2fcb (patch)
tree75b2557f2f634ec460089cf438df8ff73ca9e149 /rust/helpers/mutex.c
parentdrm/tiny: panel-mipi-dbi: Use drm_client_setup_with_fourcc() (diff)
downloadkernel-2f0c6fceae0df59a9c0edb5d41529b90ee9f2fcb.tar.gz
kernel-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 <[email protected]> Reviewed-by: Jacek Lawrynowicz <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions