logo       

[PATCH] md - 1 of 3 - Fix small bug in md.c: msg#00062

linux.raid

Subject: [PATCH] md - 1 of 3 - Fix small bug in md.c



We cannot de-reference rdev->sb if rdev->faulty....

----------- Diffstat output ------------
./drivers/md/md.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff ./drivers/md/md.c~current~ ./drivers/md/md.c
--- ./drivers/md/md.c~current~ 2003-03-12 11:54:51.000000000 +1100
+++ ./drivers/md/md.c 2003-03-12 11:54:51.000000000 +1100
@@ -1048,7 +1048,7 @@ repeat:
printk("(skipping faulty ");
if (rdev->alias_device)
printk("(skipping alias ");
- if (disk_faulty(&rdev->sb->this_disk)) {
+ if (!rdev->faulty && disk_faulty(&rdev->sb->this_disk)) {
printk("(skipping new-faulty %s )\n",
partition_name(rdev->dev));
continue;
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise