]> git.baikalelectronics.ru Git - kernel.git/commit
vsock/virtio: free packets during the socket release
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 17 May 2019 14:45:43 +0000 (16:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 May 2019 18:46:36 +0000 (11:46 -0700)
commit89de2cec2e6510ba3c9fab2f419d63132bd5bf53
treed6751593006c14cd1b4d4f3fbc447094a442f71d
parent9cc7839fa2e2dcc630a2b1408fc39f847455a924
vsock/virtio: free packets during the socket release

When the socket is released, we should free all packets
queued in the per-socket list in order to avoid a memory
leak.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/virtio_transport_common.c