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

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
...@@ -379,7 +379,7 @@ static ssize_t send_control_msg(struct port *port, unsigned int event, ...@@ -379,7 +379,7 @@ static ssize_t send_control_msg(struct port *port, unsigned int event,
struct scatterlist sg[1]; struct scatterlist sg[1];
struct virtio_console_control cpkt; struct virtio_console_control cpkt;
struct virtqueue *vq; struct virtqueue *vq;
int len; unsigned int len;
if (!use_multiport(port->portdev)) if (!use_multiport(port->portdev))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment