Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 604b2ad7 authored by Amit Shah's avatar Amit Shah
Browse files

virtio: console: Fix type of 'len' as unsigned int



We declare 'len' as int type but it should be 'unsigned int', as
get_buf() wants it to be.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Reported-by: default avatarJuan Quintela <quintela@redhat.com>
parent eaa5eec7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ static ssize_t send_control_msg(struct port *port, unsigned int event,
	struct scatterlist sg[1];
	struct virtio_console_control cpkt;
	struct virtqueue *vq;
	int len;
	unsigned int len;

	if (!use_multiport(port->portdev))
		return 0;