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:
parent
13d46594d1
commit
9498501254
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user