Skip to content
Snippets Groups Projects
Commit 2bb100e0 authored by Biswajit Paul's avatar Biswajit Paul Committed by Pat Tjin
Browse files

msm: crypto: Fix integer overflow check in qcedev driver


Integer overflow check always fails when ULONG_MAX is used,
as ULONG_MAX is 2^64-1, while req->data[i].len and total
are uint32_t. Make change to use U32_MAX instead of
ULONG_MAX.

Bug: 29999665
CRs-fixed: 1046507
Change-Id: Iccf9c32400ecc7ffc0afae16f58c38e5d78a5b64
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
Signed-off-by: default avatarMekala Natarajan <mekalan@codeaurora.org>
parent c210f9f9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment