[PATCH 0/2] crypto: lrw - Fixes for the 'create()' function

From: Christophe JAILLET
Date: Sun Oct 08 2017 - 05:40:31 EST


The first patch is the same as the one committed for crypto/xts.c applied a
few days ago.
(commit 5125e4e867ab ("crypto: xts - Fix an error handling path in 'create()'")
in /git/herbert/crypto-2.6.git)

The 2nd one is a pure speculation from me.
The create function in 'crypto/xts.c' and 'crypto/lrw.c' look very
similar.
However, there is one more sanity check in xts. This patch proposes to
add the same test in lrw. Not sure at all if correct!
I just send it for consistency.

Christophe JAILLET (2):
crypto: lrw - Fix an error handling path in 'create()'
crypto: lrw - Check for incorrect cipher name

crypto/lrw.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

--
2.11.0