This push fixes potential use-after-frees in rk3288 and sun8i-ce.
crypto: rk3288 - Fix use after free in unprepare

The unprepare call must be carried out before the finalize call
as the latter can free the request.

Fixes: c66c17a0f69b ("crypto: rk3288 - Remove prepare/unprepare request")
Reported-by: Andrey Skvortsov <>
Cc: <>
Signed-off-by: Herbert Xu <>
Reviewed-by: Andrey Skvortsov <>
Signed-off-by: Herbert Xu <>
1 file changed