]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm crypt: fix call to clone_init
authorOlaf Kirch <olaf.kirch@oracle.com>
Wed, 13 Jun 2007 19:57:50 +0000 (15:57 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Aug 2007 16:10:24 +0000 (09:10 -0700)
commitc0c1813dd8f0775ea90f68ce2db5725671a68196
treee6eaf6f1a7cedfdce839f4e5910650a025f7de51
parente3158d9e1f8e1439c133428e36f814208fa699dd
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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-crypt.c