Skip to content

Commit 9830c7d

Browse files
committed
draid: fix CodeQL error at vdev_draid_shuffle_perms()
Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>
1 parent 062740d commit 9830c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/vdev_draid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ vdev_draid_shuffle_perms(const draid_map_t *map, uint8_t *perms, uint64_t width)
600600

601601
VERIFY3U(width, >=, VDEV_DRAID_MIN_CHILDREN);
602602
VERIFY3U(width, <=, VDEV_DRAID_MAX_CHILDREN);
603-
VERIFY3U(width % cn, ==, 0);
603+
ASSERT0(width % cn);
604604

605605
uint64_t draid_seed[2] = { VDEV_DRAID_SEED, map->dm_seed };
606606

0 commit comments

Comments
 (0)