commit | 027581f3515b5ec2218847dab578afa439a9d6b9 | [log] [tgz] |
---|---|---|
author | Olaf Kirch <olaf.kirch@oracle.com> | Wed May 09 02:32:52 2007 -0700 |
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | Wed May 09 12:30:46 2007 -0700 |
tree | a15a2e0f3711c42a70170b9d4232b61d694899ca | |
parent | 9c89f8be1a7d14aad9d2c3f7d90d7d88f82c61e2 [diff] |
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>