]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] dm crypt: fix call to clone_init
authorOlaf Kirch <olaf.kirch@oracle.com>
Wed, 13 Jun 2007 19:57:50 +0000 (15:57 -0400)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:29 +0000 (10:02 +0200)
commit286f79b20a53299a588789b86f5a435bee5d40cd
treea32f8b21aea5e37aac32eee6e523100d63e46735
parent9d6effd49c65970b9cc35ce346fa510eeccd5127
[PATCH] 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