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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:04 pm

Gitweb:     http://git.kernel.org/linus/604b2ad7ccb11569d3b843bb1ce0fbe034e70769
Commit:     604b2ad7ccb11569d3b843bb1ce0fbe034e70769
Parent:     eaa5eec739637f32f8733d528ff0b94fd62b1214
Author:     Amit Shah <amit.shah@redhat.com>
AuthorDate: Wed Feb 24 10:36:51 2010 +0530
Committer:  Amit Shah <amit.shah@redhat.com>
CommitDate: Thu Mar 4 13:40:33 2010 +0530

    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 <amit.shah@redhat.com>
    Reported-by: Juan Quintela <quintela@redhat.com>
---
 drivers/char/virtio_console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
virtio: console: Fix type of 'len' as unsigned int, Linux Kernel Mailing ..., (Sun Mar 7, 6:04 pm)