virtio_console: don't tie bufs to a vq
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Apr 2018 16:54:23 +0000 (19:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:29:04 +0000 (18:29 +0100)
commitd811bffe7e5358712de7c40d1a712a62dd5451f3
treee7c05028f893ebc10125a6ecf9bdce40c0997d8d
parent8688e0d2018a4b1161c1c679a4fd4ce83a3265e0
virtio_console: don't tie bufs to a vq

[ Upstream commit 2855b33514d290c51d52d94e25d3ef942cd4d578 ]

an allocated buffer doesn't need to be tied to a vq -
only vq->vdev is ever used. Pass the function the
just what it needs - the vdev.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/virtio_console.c