aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-07-14 15:05:24 +0000
committerMark Johnston <markj@FreeBSD.org>2020-07-14 15:05:24 +0000
commit3db2b0d5ffd6725ee461250fcda9024ea69b9925 (patch)
tree2a7dab13e1b884cac48a5d4f5855762265eaad29
parent9a1184de2aea3cf880cad54c128c7176285eb491 (diff)
downloadsrc-3db2b0d5ffd6725ee461250fcda9024ea69b9925.tar.gz
src-3db2b0d5ffd6725ee461250fcda9024ea69b9925.zip
safexcel(4): Fix the INVARIANTS build after a last-second change.
Reported by: Jenkins MFC with: r363180
Notes
Notes: svn path=/head/; revision=363182
-rw-r--r--sys/dev/safexcel/safexcel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/safexcel/safexcel.c b/sys/dev/safexcel/safexcel.c
index d7fee9b42a29..e59a82e01195 100644
--- a/sys/dev/safexcel/safexcel.c
+++ b/sys/dev/safexcel/safexcel.c
@@ -1896,8 +1896,8 @@ safexcel_cmd_descr_add(struct safexcel_ring *ring, bool first, bool last,
struct safexcel_cmd_descr *cdesc;
struct safexcel_cmd_descr_ring *cring;
- KASSERT(full_data_len <= SAFEXCEL_MAX_REQUEST_SIZE,
- ("%s: request length %u too long", __func__, full_data_len));
+ KASSERT(reqlen <= SAFEXCEL_MAX_REQUEST_SIZE,
+ ("%s: request length %u too long", __func__, reqlen));
mtx_assert(&ring->mtx, MA_OWNED);
cring = &ring->cdr;