Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto/dpaa2_sec: fix memory allocation check
[ upstream commit 9a494a3 ] When key length is 0, zmalloc will return NULL pointer and in that case it should not return NOMEM. So in this patch, adding a check on key length. Fixes: 8d1f3a5 ("crypto/dpaa2_sec: support crypto operation") Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
- Loading branch information