Skip to content
Commit 303a0e11 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid1 - don't assume newly allocated bvecs are initialised.

Since commit d3f76110


newly allocated bvecs aren't initialised to NULL, so we have
to be more careful about freeing a bio which only managed
to get a few pages allocated to it.  Otherwise the resync
process crashes.

This patch is appropriate for 2.6.29-stable.

Cc: stable@kernel.org
Cc: "Jens Axboe" <jens.axboe@oracle.com>
Reported-by: default avatarGabriele Tozzi <gabriele@tozzi.eu>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 6bb59750
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment