aboutsummaryrefslogtreecommitdiff
path: root/lib/libcrypt/(public-mirror)
diff options
context:
space:
mode:
authorSumit Saxena <sumit.saxena@broadcom.com>2026-09-29 12:15:06 +0000
committerSumit Saxena <ssaxena@FreeBSD.org>2026-10-09 08:24:46 +0000
commit4f20e02ed0582bd8a3e2b59853690c1d46e08fa8 (patch)
tree357d2548efe224d924382a0d0d6c4333e2b4e4e1 /lib/libcrypt/(public-mirror)
parentfdab50f6f8107c9d825a7e6d92d7a6b89c417bbb (diff)
if_bnxt: dcb: serialize HWRM sends and avoid freeing DMA bufs on timeoutHEADmain
Every _hwrm_send_message() call in bnxt_dcb.c ran without BNXT_HWRM_LOCK, unlike the rest of the driver, letting concurrent HWRM commands race on the shared MMIO doorbell and response buffer. Route single-shot sends through the already-locked hwrm_send_message() wrapper, and wrap the remaining send+response-read sequences in explicit BNXT_HWRM_LOCK/UNLOCK. Also stop freeing the transient DMA buffers used for structured-data get/set on ETIMEDOUT: a host-side timeout doesn't guarantee firmware actually gave up, so a late completion could still DMA into memory that's since been freed and reused. Leak the buffer instead in that case. Reviewed by: gallatin MFC after: 2 weeks Sponsored by: Broadcom Inc. Differential Revision: https://reviews.freebsd.org/D60179
Diffstat (limited to 'lib/libcrypt/(public-mirror)')
0 files changed, 0 insertions, 0 deletions