md: fix uninitialized use of mddev->recovery_wait
authorDan Williams <dan.j.williams@intel.com>
Fri, 6 Jun 2008 05:45:53 +0000 (22:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2008 18:29:08 +0000 (11:29 -0700)
commita6d8113a986c66aeb379a26b6e0062488b3e59e1
treeb66aea459f4f3dcb9b13b8852f3e2b12b385ce94
parente0a115e5aa554b93150a8dc1c3fe15467708abb2
md: fix uninitialized use of mddev->recovery_wait

If an array was created with --assume-clean we will oops when trying to
set ->resync_max.

Fix this by initializing ->recovery_wait in mddev_find.

Cc: <stable@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c