crypto: chelsio - Fix potential NULL pointer dereferences
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 3 Apr 2018 20:09:12 +0000 (15:09 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:31 +0000 (00:58 +0800)
commit3d8ccf9f6ef6b569b0821d75e4ada9430d3be462
treefbf1b5acd1b030b57f13406ec6c9772b953a2c06
parent31545df391d58a3bb60e29b1192644a6f2b5a8dd
crypto: chelsio - Fix potential NULL pointer dereferences

Add null checks on lookup_tid() return value in order to prevent
null pointer dereferences.

Addresses-Coverity-ID: 1467422 ("Dereference null return value")
Addresses-Coverity-ID: 1467443 ("Dereference null return value")
Addresses-Coverity-ID: 1467445 ("Dereference null return value")
Addresses-Coverity-ID: 1467449 ("Dereference null return value")
Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chtls/chtls_cm.c