crypto: aead - Do not set cra_type for new style instances
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 23 May 2015 07:41:53 +0000 (15:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 May 2015 10:41:31 +0000 (18:41 +0800)
commitd1ee1f02b7a207e757cbd78a9865a69234a0d867
tree04a42be74eebef375f5fe628c9f8082146d3d5af
parent1e419c7970f124113c443b6154f1f8a049cf6e00
crypto: aead - Do not set cra_type for new style instances

The function aead_geniv_alloc currently sets cra_type even for
new style instances.  This is unnecessary and may hide bugs such
as when our caller uses crypto_register_instance instead of the
correct aead_register_instance.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c