]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe: Handle requests for TLS key allocations with no TLS key storage.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 8 Aug 2022 18:21:54 +0000 (11:21 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 8 Aug 2022 18:21:54 +0000 (11:21 -0700)
commit1ca4f45ea89f10621bf7e9cfea1705d0a7940bea
tree450979718aa99f87a4242d44f7efbd5046175067
parentbbb2f537156b663560cb0a45933c0fafdd2525a3
cxgbe: Handle requests for TLS key allocations with no TLS key storage.

If an adapter advertises support for TLS keys but an empty TLS key
storage area in on-board memory, fail the request rather than invoking
vmem_alloc on an uninitialized vmem.

Sponsored by: Chelsio Communications
sys/dev/cxgbe/crypto/t4_keyctx.c