diff options
-rw-r--r-- | drivers/char/virtio_console.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 10280a29a34b..5397884b6c02 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -1394,6 +1394,13 @@ static void handle_control_message(struct ports_device *portdev, | |||
1394 | break; | 1394 | break; |
1395 | case VIRTIO_CONSOLE_PORT_NAME: | 1395 | case VIRTIO_CONSOLE_PORT_NAME: |
1396 | /* | 1396 | /* |
1397 | * If we woke up after hibernation, we can get this | ||
1398 | * again. Skip it in that case. | ||
1399 | */ | ||
1400 | if (port->name) | ||
1401 | break; | ||
1402 | |||
1403 | /* | ||
1397 | * Skip the size of the header and the cpkt to get the size | 1404 | * Skip the size of the header and the cpkt to get the size |
1398 | * of the name that was sent | 1405 | * of the name that was sent |
1399 | */ | 1406 | */ |