diff --git a/[refs] b/[refs] index d4ac01c5fe52..f4ce95883f09 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a461e11e7b8ca2705889bcf9582f6a8f84884bd2 +refs/heads/master: 299fb61c08c2fcd1bb6d3a4e87e53dc368475416 diff --git a/trunk/drivers/char/virtio_console.c b/trunk/drivers/char/virtio_console.c index dc42d5689483..6c1b676643a9 100644 --- a/trunk/drivers/char/virtio_console.c +++ b/trunk/drivers/char/virtio_console.c @@ -809,6 +809,8 @@ static int port_fops_open(struct inode *inode, struct file *filp) reclaim_consumed_buffers(port); spin_unlock_irq(&port->outvq_lock); + nonseekable_open(inode, filp); + /* Notify host of port being opened */ send_control_msg(filp->private_data, VIRTIO_CONSOLE_PORT_OPEN, 1); @@ -840,6 +842,7 @@ static const struct file_operations port_fops = { .poll = port_fops_poll, .release = port_fops_release, .fasync = port_fops_fasync, + .llseek = no_llseek, }; /*