X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=crypto%2Falgboss.c;h=412241ce4cfae25822a6beccf9360c9f52ccc89f;hb=d43c36dc6b357fa1806800f18aa30123c747a6d1;hp=6906f92aeac03330653a9539550861f1f6cffb9f;hpb=6fe4a28d8855e072036f36ee22f0a8f43f44918f;p=safe%2Fjmp%2Flinux-2.6 diff --git a/crypto/algboss.c b/crypto/algboss.c index 6906f92..412241c 100644 --- a/crypto/algboss.c +++ b/crypto/algboss.c @@ -68,6 +68,11 @@ static int cryptomgr_probe(void *data) goto err; do { + if (tmpl->create) { + err = tmpl->create(tmpl, param->tb); + continue; + } + inst = tmpl->alloc(param->tb); if (IS_ERR(inst)) err = PTR_ERR(inst); @@ -280,29 +285,13 @@ static struct notifier_block cryptomgr_notifier = { static int __init cryptomgr_init(void) { - int err; - - err = testmgr_init(); - if (err) - return err; - - err = crypto_register_notifier(&cryptomgr_notifier); - if (err) - goto free_testmgr; - - return 0; - -free_testmgr: - testmgr_exit(); - return err; + return crypto_register_notifier(&cryptomgr_notifier); } static void __exit cryptomgr_exit(void) { int err = crypto_unregister_notifier(&cryptomgr_notifier); BUG_ON(err); - - testmgr_exit(); } subsys_initcall(cryptomgr_init);