summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorArseniy Krasnov <avkrasnov@sberdevices.ru>2023-03-28 14:32:12 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-03-30 11:47:48 +0300
commitb8d2f61fdf2a566f7872158f35e65599aceb90fb (patch)
tree2933e84f77e16b64a8d77c0bdc8b76d7cc05eff6 /init
parentf7154d967bc4ee25ea1572937550e711b2525474 (diff)
downloadlinux-b8d2f61fdf2a566f7872158f35e65599aceb90fb.tar.xz
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 <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions