summaryrefslogtreecommitdiffstats
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-09-16 11:13:09 +0200
committerRusty Russell <rusty@rustcorp.com.au>2010-10-21 09:14:04 +0200
commit299fb61c08c2fcd1bb6d3a4e87e53dc368475416 (patch)
tree85a4dd7406b44c8e95c4618c5cb90ae92987cd85 /drivers/block/virtio_blk.c
parentvirtio: console: Send SIGIO in case of port unplug (diff)
downloadlinux-299fb61c08c2fcd1bb6d3a4e87e53dc368475416.tar.xz
linux-299fb61c08c2fcd1bb6d3a4e87e53dc368475416.zip
virtio: console: Disable lseek(2) for port file operations
The ports are char devices; do not have seeking capabilities. Calling nonseekable_open() from the fops_open() call and setting the llseek fops pointer to no_llseek ensures an lseek() call from userspace returns -ESPIPE. Signed-off-by: Amit Shah <amit.shah@redhat.com> CC: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/block/virtio_blk.c')
0 files changed, 0 insertions, 0 deletions