Re: [dpdk-dev] [PATCH 2/2] crypto/dpaa2_sec: fix if check on memory allocation

2021-01-27 Thread Akhil Goyal
> When key length is 0, zmalloc will return NULL pointor > and in that case it should not return NOMEM. > So in this patch, adding a check on key length. > > Fixes: 8d1f3a5d751b ("crypto/dpaa2_sec: support crypto operation") > Cc: akhil.go...@nxp.com > --- Signed-off missing. Will add it while mer

[dpdk-dev] [PATCH 2/2] crypto/dpaa2_sec: fix if check on memory allocation

2021-01-25 Thread Gagandeep Singh
When key length is 0, zmalloc will return NULL pointor and in that case it should not return NOMEM. So in this patch, adding a check on key length. Fixes: 8d1f3a5d751b ("crypto/dpaa2_sec: support crypto operation") Cc: akhil.go...@nxp.com --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1