]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initialize the allocation of variables related to the ext2 allocator.
authorpfg <pfg@FreeBSD.org>
Sun, 15 Feb 2015 01:12:15 +0000 (01:12 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 15 Feb 2015 01:12:15 +0000 (01:12 +0000)
commitd2ad05642ab398ae2a65a75962cf4d3ff2fb9d85
tree3ae3c15f54110eed5b1be399f73c8ad5deb92498
parent15b0f0460e634f1ec3db517054bfea2158b654b8
Initialize the allocation of variables related to the ext2 allocator.

The e2fs_gd struct was not being initialized and garbage was
being used for hinting the ext2 allocator variant.
Use malloc to clear the values and also initialize e2fs_contigdirs
during allocation to keep consistency.

While here clean up small style issues.

Reported by: Clang static analyser
MFC after: 1 week
sys/fs/ext2fs/ext2_vfsops.c