Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
10bb21f
)
vcl: fix free segments assert
17/33717/1
author
Florin Coras
<fcoras@cisco.com>
Fri, 10 Sep 2021 18:37:12 +0000
(11:37 -0700)
committer
Florin Coras
<fcoras@cisco.com>
Fri, 10 Sep 2021 18:37:12 +0000
(11:37 -0700)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I837820fd1759cab55f42c54950e991a215234737
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
2082394
..
86a0c64
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-2196,7
+2196,7
@@
vppcom_session_free_segments (uint32_t session_handle, uint32_t n_bytes)
is_ct = vcl_session_is_ct (s);
svm_fifo_dequeue_drop (is_ct ? s->ct_rx_fifo : s->rx_fifo, n_bytes);
- ASSERT (s->rx_bytes_pending
<
n_bytes);
+ ASSERT (s->rx_bytes_pending
>=
n_bytes);
s->rx_bytes_pending -= n_bytes;
}