Add missing NULL checks in CAAM sm
authorRadu Solea <radu.solea@nxp.com>
Wed, 8 Mar 2017 14:34:15 +0000 (16:34 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:54 +0000 (15:10 -0500)
commit9d2aa2ec3b155a570fc436d6c90b0446222374b4
treece094f58faab18287a98a71b604319600819e643
parent18ebea05a2abe2e31b835f1fee9b9d1b144657b1
Add missing NULL checks in CAAM sm

    Missing NULL checks in CAAM sm_store and sm_test cause kernel
    crashes if caam init fails.

Signed-off-by: Radu Solea <radu.solea@nxp.com>
drivers/crypto/caam/sm_store.c
drivers/crypto/caam/sm_test.c