]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm crypt: fix call to clone_init
authorOlaf Kirch <olaf.kirch@oracle.com>
Wed, 9 May 2007 09:32:52 +0000 (02:32 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:46 +0000 (12:30 -0700)
commit027581f3515b5ec2218847dab578afa439a9d6b9
treea15a2e0f3711c42a70170b9d4232b61d694899ca
parent9c89f8be1a7d14aad9d2c3f7d90d7d88f82c61e2
dm crypt: fix call to clone_init

Call clone_init early

We need to call clone_init as early as possible - at least before call
bio_put(clone) in any error path.  Otherwise, the destructor will try to
dereference bi_private, which may still be NULL.

Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/dm-crypt.c