Neil Brown
9bbbca3a0e
Fix error paths if md_probe fails.
...
md_probe can fail (e.g. alloc_disk could fail) without
returning an error (as it alway returns NULL).
So when we call mddev_find immediately afterwards, we need
to check that md_probe actually succeeded. This means checking
that mdev->gendisk is non-NULL.
cc: <stable@kernel.org>
Cc: Dave Jones <davej@redhat.com>
Signed-off-by: Neil Brown <neilb@suse.de>
2008-06-28 08:31:17 +10:00
..
2008-02-06 10:41:18 -08:00
2006-01-01 22:21:50 +01:00
2008-05-24 09:56:09 -07:00
2007-10-20 02:01:11 +01:00
2005-04-16 15:20:36 -07:00
2008-03-28 14:45:22 -07:00
2007-10-20 02:01:11 +01:00
2008-04-29 14:48:55 +02:00
2008-04-25 13:26:55 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:18 +01:00
2008-04-25 13:26:57 +01:00
2008-02-08 02:10:16 +00:00
2008-04-25 13:26:57 +01:00
2006-12-08 08:29:09 -08:00
2008-04-25 13:26:55 +01:00
2008-04-29 14:48:55 +02:00
2008-04-29 14:48:55 +02:00
2008-02-08 02:10:35 +00:00
2006-12-08 08:28:40 -08:00
2007-10-20 02:01:07 +01:00
2006-12-08 08:28:40 -08:00
2008-04-25 13:26:57 +01:00
2007-07-12 15:01:08 -07:00
2008-04-25 13:26:55 +01:00
2008-04-25 13:26:44 +01:00
2008-02-08 02:11:24 +00:00
2008-04-29 10:21:12 -07:00
2007-10-20 02:01:07 +01:00
2008-04-28 08:58:42 -07:00
2007-10-20 02:01:26 +01:00
2007-10-10 09:25:57 +02:00
2008-04-25 13:27:02 +01:00
2008-04-25 13:26:53 +01:00
2008-02-06 10:41:19 -08:00
2008-02-08 02:10:32 +00:00
2008-05-14 19:11:15 -07:00
2008-04-25 13:26:55 +01:00
2008-06-28 08:31:17 +10:00
2008-02-06 10:41:18 -08:00
2008-05-24 09:56:10 -07:00
2008-05-14 19:11:15 -07:00
2008-05-24 09:56:10 -07:00
2008-06-28 08:31:14 +10:00
2005-09-17 11:49:58 -07:00
2008-04-28 08:58:42 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2008-06-28 08:30:52 +10:00
2005-04-16 15:20:36 -07:00