]> www.infradead.org Git - users/dwmw2/linux.git/commit
crypto: amlogic - fix removal of module
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Mon, 6 Jan 2020 19:29:50 +0000 (20:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:00 +0000 (04:37 -0800)
commit00338ea9d274026111142c4fa37d1f3101d17f8e
tree93d4a18060103f39eabb78d43e249857139f7726
parent415ee076db5c4d67b4bf2ba4c1a701f9635e83b6
crypto: amlogic - fix removal of module

commit 24775ac2fe68132d3e0e7cd3a0521ccb1a5d7243 upstream.

Removing the driver cause an oops due to the fact we clean an extra
channel.
Let's give the right index to the cleaning function.
Fixes: 48fe583fe541 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/amlogic/amlogic-gxl-core.c