提交 604b2ad7 编写于 作者: A 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: NAmit Shah <amit.shah@redhat.com>
Reported-by: NJuan Quintela <quintela@redhat.com>
上级 eaa5eec7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册