HomeFreeBSD

safexcel: Stop using a stack buffer for the ring lock name

Description

safexcel: Stop using a stack buffer for the ring lock name

mtx_init() does not make a copy of the name so the buffer must be valid
for the lifetime of the driver instance. Store each ring's lock's name
in the ring structure.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)

Details

Provenance
markjAuthored on Jan 8 2021, 6:32 PM
Parents
rG501159696cb5: igmp: Avoid leaking mbuf when source validation fails
Branches
Unknown
Tags
Unknown