aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/algapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r--crypto/algapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index f149b1c8b76d..76fae27ed01c 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -17,6 +17,7 @@
17#include <linux/list.h> 17#include <linux/list.h>
18#include <linux/module.h> 18#include <linux/module.h>
19#include <linux/rtnetlink.h> 19#include <linux/rtnetlink.h>
20#include <linux/slab.h>
20#include <linux/string.h> 21#include <linux/string.h>
21 22
22#include "internal.h" 23#include "internal.h"
@@ -230,7 +231,7 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
230 list_add(&alg->cra_list, &crypto_alg_list); 231 list_add(&alg->cra_list, &crypto_alg_list);
231 list_add(&larval->alg.cra_list, &crypto_alg_list); 232 list_add(&larval->alg.cra_list, &crypto_alg_list);
232 233
233out: 234out:
234 return larval; 235 return larval;
235 236
236free_larval: 237free_larval:
@@ -388,7 +389,7 @@ int crypto_unregister_alg(struct crypto_alg *alg)
388{ 389{
389 int ret; 390 int ret;
390 LIST_HEAD(list); 391 LIST_HEAD(list);
391 392
392 down_write(&crypto_alg_sem); 393 down_write(&crypto_alg_sem);
393 ret = crypto_remove_alg(alg, &list); 394 ret = crypto_remove_alg(alg, &list);
394 up_write(&crypto_alg_sem); 395 up_write(&crypto_alg_sem);