mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226550
@ -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