commit | 21905d0aebb036cc36159b4d3a2c6a616a04d5d9 | [log] [tgz] |
---|---|---|
author | Zhen Kong <zkong@codeaurora.org> | Fri Jan 13 12:33:56 2017 +0800 |
committer | Teemu Hukkanen <teemu@fairphone.com> | Mon Feb 27 16:09:58 2017 +0100 |
tree | a13eb3e30e513744a7af63ed93028cb8b6d4f59f | |
parent | 2329a5c3d940df7d8211155504d056b3ccc629b3 [diff] |
FPII-2771: msm: crypto: Fix integer over flow check in qce driver Integer overflow check is invalid when ULONG_MAX is used, as ULONG_MAX has typeof 'unsigned long', while areq->assoclen, q_req->crytlen, and qreq.ivsize are 'unsigned int'. Make change to use UINT_MAX instead of ULONG_MAX. Change-Id: I969b2931ae142183f6cf631258a3d3040057dd02