aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-07-11 11:21:00 +0300
committerJeffrey Hugo <[email protected]>2023-07-14 10:12:05 -0600
commit47d87f71d00b7091b43a56f608f7151b33e5772e (patch)
tree362a07cd0223b337fe43a584e2acf6f861c8e8cb /lib/test-string_helpers.c
parent51b56382ed2a2b03347372272362b3baa623ed1e (diff)
accel/qaic: Add consistent integer overflow checks
The encode_dma() function has integer overflow checks. The encode_passthrough(), encode_activate() and encode_status() functions did not. I added integer overflow checking everywhere. I also updated the integer overflow checking in encode_dma() to use size_add() so everything is consistent. Fixes: 129776ac2e38 ("accel/qaic: Add control path") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Pranjal Ramajor Asha Kanojiya <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Cc: [email protected] # 6.4.x [jhugo: tweak if in encode_dma() to match existing style] Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ZK0Q7IsPkj6WSCcL@moroto
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions