Skip to content

Commit

Permalink
virtio: console: Fix type of 'len' as unsigned int
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Shah committed Mar 4, 2010
1 parent eaa5eec commit 604b2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 604b2ad

Please sign in to comment.