dm crypt: fix avoid cloned bio ref after free
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)
commit98221eb757de03d9aa6262b1eded2be708640ccc
treecef3fd80f62d6227551adc75c34023d60cbaa9c1
parent027581f3515b5ec2218847dab578afa439a9d6b9
dm crypt: fix avoid cloned bio ref after free

Do not access the bio after generic_make_request

We should never access a bio after generic_make_request - there's no guarantee
it still exists.

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