From 604b2ad7ccb11569d3b843bb1ce0fbe034e70769 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Wed, 24 Feb 2010 10:36:51 +0530 Subject: 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: Amit Shah Reported-by: Juan Quintela diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 213373b..2bd6a9c 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -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; -- cgit v0.10.2