Page MenuHomeFreeBSD

D27731.diff
No OneTemporary

D27731.diff

Index: sys/ufs/ffs/ffs_snapshot.c
===================================================================
--- sys/ufs/ffs/ffs_snapshot.c
+++ sys/ufs/ffs/ffs_snapshot.c
@@ -385,8 +385,8 @@
* 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);

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 5, 11:16 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13686124
Default Alt Text
D27731.diff (532 B)

Event Timeline