crypto/octeontx2: fix null pointer dereferences
authorAnkur Dwivedi <adwivedi@marvell.com>
Thu, 28 Jan 2021 05:16:53 +0000 (10:46 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Thu, 4 Feb 2021 17:55:52 +0000 (18:55 +0100)
commitd4f6f2680bfbabd89f3450a8d77e4c0dfb85ad1c
tree1e2fca2100c0e04d1fe9e2b0b06d7ce6483edeef
parentd13d7829fc67d53b007c00546bb0cd9ee3ae2bcb
crypto/octeontx2: fix null pointer dereferences

Coverity reports that pointers ip and ip6 may be dereferenced
with null value. This patch fixes this.

Coverity issue: 365549, 365551
Fixes: 8f685ec2d545 ("crypto/octeontx2: support AES-CBC SHA1-HMAC")

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
drivers/crypto/octeontx2/otx2_cryptodev_sec.c