aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-11-18 22:32:17 -0800
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-11-18 22:32:17 -0800
commitbc7fc5e33e1a093e5f9e196595843bb096471586 (patch)
tree6916c28ae9582f4257d5ec661a6903427b96571e
parentLinux 2.6.37-rc2 (diff)
downloadlinux-dev-bc7fc5e33e1a093e5f9e196595843bb096471586.tar.xz
linux-dev-bc7fc5e33e1a093e5f9e196595843bb096471586.zip
xen/evtchn: the evtchn device is non-seekable
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
-rw-r--r--drivers/xen/evtchn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c
index fec6ba3c08a8..dd8e5e0f1935 100644
--- a/drivers/xen/evtchn.c
+++ b/drivers/xen/evtchn.c
@@ -431,7 +431,7 @@ static int evtchn_open(struct inode *inode, struct file *filp)
filp->private_data = u;
- return 0;
+ return nonseekable_open(inode, filp);;
}
static int evtchn_release(struct inode *inode, struct file *filp)
@@ -467,7 +467,7 @@ static const struct file_operations evtchn_fops = {
.fasync = evtchn_fasync,
.open = evtchn_open,
.release = evtchn_release,
- .llseek = noop_llseek,
+ .llseek = no_llseek,
};
static struct miscdevice evtchn_miscdev = {