crypto: algif_aead - Fix kernel panic on list_del
commit066a7166c5412ea4c04b1946faf2aa7cda48ee60
authorHarsh Jain <harsh@chelsio.com>
Wed, 1 Feb 2017 15:40:28 +0000 (1 21:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:32 +0000 (14 15:25 -0800)
treed9f98c141312fc2679c39c70da8fc12e1cec76c8
parent621d101a7ebb7965ee3332e4e6e8d17bdd8f0555
crypto: algif_aead - Fix kernel panic on list_del

commit 0b529f143e8baad441a5aac9ad55ec2434d8fb46 upstream.

Kernel panics when userspace program try to access AEAD interface.
Remove node from Linked List before freeing its memory.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
Reviewed-by: Stephan Müller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algif_aead.c