commit | fd144d83cc42cfe6c82cba76bc0113dacd53a4d4 | [log] [tgz] |
---|---|---|
author | Horia Geantă <horia.geanta@nxp.com> | Fri Feb 10 14:07:18 2017 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Feb 15 13:23:39 2017 +0800 |
tree | 7d233ab0c8a743332ef4ac426611348ab43f755a | |
parent | fd88aac93e4dc7810940e854be1c3dc5adb20120 [diff] |
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>