linux/drivers/accel/qaic
Dan Carpenter 47d87f71d0 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: 129776ac2e ("accel/qaic: Add control path")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Cc: stable@vger.kernel.org # 6.4.x
[jhugo: tweak if in encode_dma() to match existing style]
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ZK0Q7IsPkj6WSCcL@moroto
2023-07-14 10:12:05 -06:00
..
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile Revert "accel/qaic: Add mhi_qaic_cntl" 2023-04-13 12:08:08 +02:00
mhi_controller.c
mhi_controller.h
qaic_control.c accel/qaic: Add consistent integer overflow checks 2023-07-14 10:12:05 -06:00
qaic_data.c accel/qaic: Call DRM helper function to destroy prime GEM 2023-06-20 08:07:29 -06:00
qaic_drv.c accel/qaic: Fix NULL pointer deref in qaic_destroy_drm_device() 2023-06-09 11:07:28 -06:00
qaic.h