aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorArseniy Krasnov <[email protected]>2023-03-28 14:32:12 +0300
committerPaolo Abeni <[email protected]>2023-03-30 10:47:48 +0200
commitb8d2f61fdf2a566f7872158f35e65599aceb90fb (patch)
tree2933e84f77e16b64a8d77c0bdc8b76d7cc05eff6 /rust/helpers.c
parentf7154d967bc4ee25ea1572937550e711b2525474 (diff)
virtio/vsock: WARN_ONCE() for invalid state of socket
This adds WARN_ONCE() and return from stream dequeue callback when socket's queue is empty, but 'rx_bytes' still non-zero. This allows the detection of potential bugs due to packet merging (see previous patch). Signed-off-by: Arseniy Krasnov <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions