diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2020-12-23 16:13:00 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2020-12-23 16:16:40 +0000 |
| commit | ace3d9475ceecd9bcb766bb82a1c8f87e8f560be (patch) | |
| tree | 3f05e889fdaffc29ce1cb9374af042f134ce9a96 /sys/ufs/ffs | |
| parent | 0120603891ec0d082c41e1f8d2b83e71429aea8c (diff) | |
Diffstat (limited to 'sys/ufs/ffs')
| -rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index f224e828062bf..201dbf6000de7 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -385,8 +385,8 @@ restart: * touch up the few cylinder groups that changed during * the suspension period. */ - len = howmany(fs->fs_ncg, NBBY); - space = malloc(len, M_DEVBUF, M_WAITOK|M_ZERO); + len = roundup2(howmany(fs->fs_ncg, NBBY), sizeof(int)); + space = malloc(len, M_DEVBUF, M_WAITOK | M_ZERO); UFS_LOCK(ump); fs->fs_active = space; UFS_UNLOCK(ump); |
