diff options
| -rw-r--r-- | 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 09d193dbb233..eecb1f9e2e6b 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -349,7 +349,7 @@ static struct port_buffer *alloc_buf(size_t buf_size) | |||
| 349 | buf = kmalloc(sizeof(*buf), GFP_KERNEL); | 349 | buf = kmalloc(sizeof(*buf), GFP_KERNEL); |
| 350 | if (!buf) | 350 | if (!buf) |
| 351 | goto fail; | 351 | goto fail; |
| 352 | buf->buf = kzalloc(buf_size, GFP_KERNEL); | 352 | buf->buf = kmalloc(buf_size, GFP_KERNEL); |
| 353 | if (!buf->buf) | 353 | if (!buf->buf) |
| 354 | goto free_buf; | 354 | goto free_buf; |
| 355 | buf->len = 0; | 355 | buf->len = 0; |
