mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 16:56:09 +07:00
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>
This commit is contained in:
parent
eaa5eec739
commit
604b2ad7cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user