summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/crypto/caam/jr.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/crypto/caam/jr.c')
-rw-r--r--kernel/drivers/crypto/caam/jr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/crypto/caam/jr.c b/kernel/drivers/crypto/caam/jr.c
index f7e0d8d4c..8f50a02ff 100644
--- a/kernel/drivers/crypto/caam/jr.c
+++ b/kernel/drivers/crypto/caam/jr.c
@@ -248,7 +248,7 @@ static void caam_jr_dequeue(unsigned long devarg)
struct device *caam_jr_alloc(void)
{
struct caam_drv_private_jr *jrpriv, *min_jrpriv = NULL;
- struct device *dev = NULL;
+ struct device *dev = ERR_PTR(-ENODEV);
int min_tfm_cnt = INT_MAX;
int tfm_cnt;