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:
Pawel Jakub Dawidek 2011-10-19 23:33:48 +00:00
parent 13d46594d1
commit 9498501254

View File

@ -1628,7 +1628,9 @@ vdev_raidz_read(vdev_t *vd, const blkptr_t *bp, void *data,
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);