diff options
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/ccree/cc_cipher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ccree/cc_cipher.c b/drivers/staging/ccree/cc_cipher.c index 5c7e91f1cde7..d4ac0ff2ffcf 100644 --- a/drivers/staging/ccree/cc_cipher.c +++ b/drivers/staging/ccree/cc_cipher.c @@ -1094,6 +1094,7 @@ int cc_cipher_free(struct cc_drvdata *drvdata) { struct cc_crypto_alg *t_alg, *n; struct cc_cipher_handle *blkcipher_handle = drvdata->blkcipher_handle; + if (blkcipher_handle) { /* Remove registered algs */ list_for_each_entry_safe(t_alg, n, |