aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorWachowski, Karol <[email protected]>2024-01-26 13:27:59 +0100
committerJacek Lawrynowicz <[email protected]>2024-02-06 13:36:33 +0100
commitb039f1c4d3727c3e44a7e89ff79e7e8533e1beec (patch)
tree7abd86b0b4ff853aa898d071ca871555a33d17b2 /lib/test_fortify/write_overflow-strncpy-src.c
parentc9da9a1f17bf4fa96b115950fd389c917b583c1c (diff)
accel/ivpu: Correct MMU queue size checking functions
Do not use kernel CIRC_SPACE and CIRC_CNT that incorrectly return space of a queue when wrap bit was set. Use correct implementation that compares producer, consumer and wrap bit values. Without this fix it was possible to lose events in case when event queue was full. Signed-off-by: Wachowski, Karol <[email protected]> Signed-off-by: Jacek Lawrynowicz <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions