HomeFreeBSD

fifo: Explicitly initialize generation numbers when opening

Description

fifo: Explicitly initialize generation numbers when opening

The fi_rgen and fi_wgen fields are generation numbers used when sleeping
waiting for the other end of the fifo to be opened. The fields were not
explicitly initialized after allocation, but this was harmless. To
avoid false positives from KMSAN, though, ensure that they get
initialized to zero.

Reported by: KMSAN
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on Jul 13 2021, 9:45 PM
Parents
rG0ca9f1d4a3b7: Fix pmbr issues > 2TB
Branches
Unknown
Tags
Unknown