crypto: chcr - Check device is allocated before use
commitb4de8af91b8ab9a604a5acd78b0d8763cf5818b5
authorHarsh Jain <harsh@chelsio.com>
Tue, 24 Jan 2017 05:04:33 +0000 (24 10:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:32 +0000 (14 15:25 -0800)
treeae23d37d835f4768c1578041814d7db520a4c0a6
parent066a7166c5412ea4c04b1946faf2aa7cda48ee60
crypto: chcr - Check device is allocated before use

commit f5f7bebc91ab378dea5aad5277c4d283e46472d9 upstream.

Ensure dev is allocated for crypto uld context before using the device
for crypto operations.

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chcr_core.c