Initialize 'rc' properly before using it. This error could lead to infinite

loop when data reconstruction was needed.

MFC after:	3 days
This commit is contained in:
pjd 2011-10-19 23:33:48 +00:00
parent 7523365c00
commit 5dc66f9eb5

View File

@ -1628,7 +1628,9 @@ reconstruct:
n = 0;
for (c = 0; c < rm->rm_cols; c++) {
if (rm->rm_col[c].rc_tried)
rc = &rm->rm_col[c];
if (rc->rc_tried)
continue;
cvd = vdev_child(vd, rc->rc_devidx);