diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-10-05 16:46:31 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-10-05 16:46:31 +0000 |
commit | 77d240cc411e04f7170cc737b4e5a9771095e1af (patch) | |
tree | 5baf8982d0bb0019c60e571515b604e26d724a7d /sys/conf | |
parent | 81653f39ae15d84811dad048833e5a416109ca82 (diff) |
MALLOC/FREE -> malloc/free + M_ZERO.
As a side effect, this probably fixes PR5596, if the allocation
of dh_hash succeeds and the dh_blkfree fails, we jump into the
fail case, but we haven't initialized dh_hash properly, that is
filling the array with memory from the dirhash pool, but the
!= NULL check holds, since the memory hasn't been zeroed and
so we start pool_put()'ing, causing the crash in PR5596.
PR5596 debugging by pedro.
ok art@, krw@
Diffstat (limited to 'sys/conf')
0 files changed, 0 insertions, 0 deletions