diff options
Diffstat (limited to 'drivers/crypto/n2_core.c')
-rw-r--r-- | drivers/crypto/n2_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 48de52cf2ecc..662e709812cc 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c | |||
@@ -1625,6 +1625,7 @@ static int queue_cache_init(void) | |||
1625 | CWQ_ENTRY_SIZE, 0, NULL); | 1625 | CWQ_ENTRY_SIZE, 0, NULL); |
1626 | if (!queue_cache[HV_NCS_QTYPE_CWQ - 1]) { | 1626 | if (!queue_cache[HV_NCS_QTYPE_CWQ - 1]) { |
1627 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); | 1627 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); |
1628 | queue_cache[HV_NCS_QTYPE_MAU - 1] = NULL; | ||
1628 | return -ENOMEM; | 1629 | return -ENOMEM; |
1629 | } | 1630 | } |
1630 | return 0; | 1631 | return 0; |
@@ -1634,6 +1635,8 @@ static void queue_cache_destroy(void) | |||
1634 | { | 1635 | { |
1635 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); | 1636 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_MAU - 1]); |
1636 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_CWQ - 1]); | 1637 | kmem_cache_destroy(queue_cache[HV_NCS_QTYPE_CWQ - 1]); |
1638 | queue_cache[HV_NCS_QTYPE_MAU - 1] = NULL; | ||
1639 | queue_cache[HV_NCS_QTYPE_CWQ - 1] = NULL; | ||
1637 | } | 1640 | } |
1638 | 1641 | ||
1639 | static long spu_queue_register_workfn(void *arg) | 1642 | static long spu_queue_register_workfn(void *arg) |