Page MenuHomeFreeBSD

clear allocated blist struct
ClosedPublic

Authored by dougm on Oct 9 2017, 9:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 8:10 AM
Unknown Object (File)
Sun, Apr 28, 5:39 AM
Unknown Object (File)
Apr 6 2024, 8:26 PM
Unknown Object (File)
Feb 16 2024, 3:10 PM
Unknown Object (File)
Jan 14 2024, 5:23 AM
Unknown Object (File)
Jan 8 2024, 2:15 AM
Unknown Object (File)
Jan 8 2024, 2:15 AM
Unknown Object (File)
Jan 8 2024, 2:15 AM
Subscribers

Details

Summary

The recent change to initialization of blists relied on '-1' appearing only where the code explicitly set it, but since much of the data was not initialized, '-1' appeared other places too, and led to panics. Clear the allocated data before initializing nonzero values by allocating with M_ZERO set in the last malloc argument.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm added a reviewer: kib.
This revision was automatically updated to reflect the committed changes.

This fixes the recurring panic on my gateway machine.