commit | 47fbc54bbe52709fbdc50f5578acf964962942b2 | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Tue Jan 08 06:56:46 2019 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jan 23 08:10:54 2019 +0100 |
tree | 9534ad2cd79f07fe1c2120f492fc0ec4f33f5a71 | |
parent | 9da8e0f4bbeb2dff0e3171987a21e3bf5e52fe5b [diff] |
crypto: talitos - reorder code in talitos_edesc_alloc() commit c56c2e173773097a248fd3bace91ac8f6fc5386d upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>