Re: [PATCH 3/5 v4] accel/qaic: Add consistent integer overflow checks

2023-07-14 Thread Jeffrey Hugo
On 7/14/2023 5:44 AM, Pranjal Ramajor Asha Kanojiya wrote: On 7/11/2023 1:51 PM, Dan Carpenter wrote: 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 als

Re: [PATCH 3/5 v4] accel/qaic: Add consistent integer overflow checks

2023-07-14 Thread Pranjal Ramajor Asha Kanojiya
On 7/11/2023 1:51 PM, Dan Carpenter wrote: 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

[PATCH 3/5 v4] accel/qaic: Add consistent integer overflow checks

2023-07-11 Thread Dan Carpenter
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. Fix