virtio: console: Fix type of 'len' as unsigned int
authorAmit Shah <amit.shah@redhat.com>
Wed, 24 Feb 2010 05:06:51 +0000 (10:36 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 4 Mar 2010 08:10:33 +0000 (13:40 +0530)
We declare 'len' as int type but it should be 'unsigned int', as
get_buf() wants it to be.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reported-by: Juan Quintela <quintela@redhat.com>
drivers/char/virtio_console.c

index 213373b..2bd6a9c 100644 (file)
@@ -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;