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.

(cherry picked from commit 8ba6acbbe6995efcd12c375e1826d55e35a8bdc9)

Details

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