Heinz Mauelshagen 092398dce8 md: md.c: fix oops in mddev_suspend for raid0
Introduced by upstream commit 70d9798b95562abac005d4ba71d28820f9a201eb

The raid0 personality does not create mddev->thread as oposed to
other personalities leading to its unconditional access in
mddev_suspend() causing an oops.

Patch checks for mddev->thread in order to keep the
intention of aforementioned commit.

Fixes: 70d9798b9556 ("MD: warn for potential deadlock")
Cc: stable@vger.kernel.org (4.5+)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2016-05-09 09:23:23 -07:00
..
2014-01-14 23:23:03 -05:00
2016-01-04 10:29:12 -05:00
2012-07-30 17:25:16 -07:00
2015-10-31 19:06:01 -04:00
2016-01-20 13:52:20 -08:00
2016-01-15 12:28:00 -08:00
2015-08-13 12:31:57 -06:00
2016-04-29 14:18:03 -07:00