Commit 0a691a2c authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[WATCHDOG] v2.6.8.1 cpu5wdt.c-nonseekable_open-patch

cpu5wdt also contains a VFS and thus should be "nonseekable_open"
parent 79d6f094
...@@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file) ...@@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file)
if ( test_and_set_bit(0, &cpu5wdt_device.inuse) ) if ( test_and_set_bit(0, &cpu5wdt_device.inuse) )
return -EBUSY; return -EBUSY;
return 0; return nonseekable_open(inode, file);
} }
static int cpu5wdt_release(struct inode *inode, struct file *file) static int cpu5wdt_release(struct inode *inode, struct file *file)
...@@ -198,6 +198,7 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c ...@@ -198,6 +198,7 @@ static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, size_t c
static struct file_operations cpu5wdt_fops = { static struct file_operations cpu5wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = cpu5wdt_ioctl, .ioctl = cpu5wdt_ioctl,
.open = cpu5wdt_open, .open = cpu5wdt_open,
.write = cpu5wdt_write, .write = cpu5wdt_write,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment