crypto: inside-secure - free requests even if their handling failed
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Mon, 11 Dec 2017 11:10:56 +0000 (12:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:30 +0000 (10:24 +0100)
commit7cc6e8415d23807c06cf74618e9dc890f1ef21e1
treec49b83d35a2cd146e288e1cb9e9ae8b04f7cad45
parent0971f188da94e84d768c37bb10384463aaa003d4
crypto: inside-secure - free requests even if their handling failed

[ Upstream commit 0a02dcca126280595950f3ea809f77c9cb0a235c ]

This patch frees the request private data even if its handling failed,
as it would never be freed otherwise.

Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Suggested-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/inside-secure/safexcel.c