[PATCH] dm-crypt: zero key before freeing it
authorStefan Rompf <stefan@loplof.de>
Fri, 6 Jan 2006 08:20:08 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:01 +0000 (08:34 -0800)
commit9d3520a339d62f942085e9888f66905eb8b350bd
tree622374ba69e8430ec2ec8d7b00a3d28990659d45
parent0b56306e56784d0513e1193d58c05a6bd97bd1a9
[PATCH] dm-crypt: zero key before freeing it

Zap the memory before freeing it so we don't leave crypto information
around in memory.

Signed-off-by: Stefan Rompf <stefan@loplof.de>
Acked-by: Clemens Fruhwirth <clemens@endorphin.org>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-crypt.c