md/raid5: initialize conf->device_lock earlier
commitf5efd45ae597c96ed017afad5662b67d55b402a0
authorDan Williams <dan.j.williams@intel.com>
Fri, 16 Oct 2009 04:55:38 +0000 (16 15:55 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 16 Oct 2009 04:55:38 +0000 (16 15:55 +1100)
tree32ef979c6882d594890e02466003f5255af00fe3
parent1d9d52416c0445019ccc1f0fddb9a227456eb61b
md/raid5: initialize conf->device_lock earlier

Deallocating a raid5_conf_t structure requires taking 'device_lock'.
Ensure it is initialized before it is used, i.e. initialize the lock
before attempting any further initializations that might fail.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c