]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
safexcel: Stop using a stack buffer for the ring lock name
authorMark Johnston <markj@FreeBSD.org>
Fri, 8 Jan 2021 18:32:04 +0000 (13:32 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 11 Jan 2021 14:42:15 +0000 (09:42 -0500)
commita0d7f3d9004675b0da39745a0e17747a8d55beb4
tree26d8bd3e5592aac8120ea1d0bca160d64c92b0f0
parent44851ff2f65de3bdf3b3fa469a7bb5546e77e170
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)
sys/dev/safexcel/safexcel.c
sys/dev/safexcel/safexcel_var.h