commit | 299fb61c08c2fcd1bb6d3a4e87e53dc368475416 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Thu Sep 16 14:43:09 2010 +0530 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Thu Oct 21 17:44:04 2010 +1030 |
tree | 85a4dd7406b44c8e95c4618c5cb90ae92987cd85 | |
parent | a461e11e7b8ca2705889bcf9582f6a8f84884bd2 [diff] |
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>