Skip to content

Commit ed1b6b5

Browse files
author
Paul Dagnelie
committed
Fix codeql issue
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 1b671cb commit ed1b6b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module/zfs/vdev_anyraid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ vdev_anyraid_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize,
829829
child_capacities[c] = var->vd_children[c]->van_capacity;
830830
}
831831
} else if (spa_load_state(vd->vdev_spa) != SPA_LOAD_CREATE &&
832-
spa_load_state(vd->vdev_spa) != SPA_LOAD_ERROR &&
832+
spa_load_state(vd->vdev_spa) != SPA_LOAD_ERROR &&
833833
spa_load_state(vd->vdev_spa) != SPA_LOAD_NONE) {
834834
for (uint64_t c = 0; c < vd->vdev_children; c++) {
835835
vdev_t *cvd = vd->vdev_child[c];
@@ -1358,8 +1358,8 @@ vdev_anyraid_write_map_sync(vdev_t *vd, zio_t *pio, uint64_t txg,
13581358
// Populate the header
13591359
uint16_t *sizes = kmem_zalloc(sizeof (*sizes) *
13601360
anyraidvd->vdev_children, KM_SLEEP);
1361-
uint8_t disk_id = 0;
1362-
for (uint8_t i = 0; i < anyraidvd->vdev_children; i++) {
1361+
uint64_t disk_id = 0;
1362+
for (uint64_t i = 0; i < anyraidvd->vdev_children; i++) {
13631363
if (anyraidvd->vdev_child[i] == vd)
13641364
disk_id = i;
13651365
sizes[i] = var->vd_children[i]->van_capacity;

0 commit comments

Comments
 (0)