From: Amit Shah Date: Thu, 16 Sep 2010 09:13:09 +0000 (+0530) Subject: virtio: console: Disable lseek(2) for port file operations X-Git-Tag: v2.6.37-rc1~219^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=299fb61c08c2fcd1bb6d3a4e87e53dc368475416;p=pandora-kernel.git 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 CC: Arnd Bergmann Signed-off-by: Rusty Russell --- Reading git-diff-tree failed