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)
commitac03046ece2b158ebd204dfc4896fd9f39f0e6c8
treed6751593006c14cd1b4d4f3fbc447094a442f71d
parent532b0f7ece4cb2ffd24dc723ddf55242d1188e5e
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