diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2017-02-10 13:07:18 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-15 06:23:39 +0100 |
commit | fd144d83cc42cfe6c82cba76bc0113dacd53a4d4 (patch) | |
tree | 7d233ab0c8a743332ef4ac426611348ab43f755a /scripts | |
parent | crypto: caam - fix HW S/G in ablkcipher_giv_edesc_alloc() (diff) | |
download | linux-fd144d83cc42cfe6c82cba76bc0113dacd53a4d4.tar.xz linux-fd144d83cc42cfe6c82cba76bc0113dacd53a4d4.zip |
crypto: caam - check sg_count() return value
sg_count() internally calls sg_nents_for_len(), which could fail
in case the required number of bytes is larger than the total
bytes in the S/G.
Thus, add checks to validate the input.
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions