]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - reorder code in talitos_edesc_alloc()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 8 Jan 2019 06:56:46 +0000 (06:56 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2019 13:37:32 +0000 (21:37 +0800)
commit8ccdd3f6d8b2a7a34dfe65b71781217a66228e4c
tree8f0314f11fe049e32c8dde77fcb2e0141f889a16
parentdb7af71d7056a68868b7de2a065d374bd40d789b
crypto: talitos - reorder code in talitos_edesc_alloc()

This patch moves the mapping of IV after the kmalloc(). This
avoids having to unmap in case kmalloc() fails.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c