OSDN Git Service

crypto: chtls - fix null dereference chtls_free_uld()
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 10 Aug 2018 12:57:41 +0000 (18:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:25 +0000 (16:59 -0700)
commit19f2fedf4f434978a0f19ab8eeec7974d7518b32
tree5a348216be070f59955c6215a3baa2570da97cff
parentff53d50516751b72412c98c53e968eb3e62e2f01
crypto: chtls - fix null dereference chtls_free_uld()

[ Upstream commit 65b2c12dcdb883fc015c0ec65d6c2f857e0456ac ]

call chtls_free_uld() only for the initialized cdev,
this fixes NULL dereference in chtls_free_uld()

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chtls/chtls.h
drivers/crypto/chelsio/chtls/chtls_main.c