dm crypt: restructure essiv error path
authorMilan Broz <mbroz@redhat.com>
Thu, 10 Dec 2009 23:51:56 +0000 (23:51 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:51:56 +0000 (23:51 +0000)
commit5861f1be00b3b70f8ab5e5a81392a6cf69666cd2
tree6b794de58bd1ad4a1b0919ea641fc5a675a4a26a
parent6047359277517c4e56d8bfd6ea4966d7a3924151
dm crypt: restructure essiv error path

Use kzfree for salt deallocation because it is derived from the volume
key.  Use a common error path in ESSIV constructor.

Required by a later patch which fixes the way key material is wiped
from memory.

Cc: stable@kernel.org
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-crypt.c