diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2004-08-20 14:55:20 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2004-08-20 14:55:20 +0200 |
commit | 0a691a2c2c9ae70e0b522d14c736f772acbabf28 (patch) | |
tree | 9290cf5d1eb782f5942b24db0957e351fcc7be1e /drivers | |
parent | 79d6f094af871903e29b6aa3dd53f138be13ab7a (diff) | |
download | history-0a691a2c2c9ae70e0b522d14c736f772acbabf28.tar.gz |
[WATCHDOG] v2.6.8.1 cpu5wdt.c-nonseekable_open-patch
cpu5wdt also contains a VFS and thus should be "nonseekable_open"
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/watchdog/cpu5wdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/watchdog/cpu5wdt.c b/drivers/char/watchdog/cpu5wdt.c index 7e7b653a212ef3..2865dac0a81396 100644 --- a/drivers/char/watchdog/cpu5wdt.c +++ b/drivers/char/watchdog/cpu5wdt.c @@ -134,7 +134,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file) if ( test_and_set_bit(0, &cpu5wdt_device.inuse) ) return -EBUSY; - return 0; + return nonseekable_open(inode, 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 static struct file_operations cpu5wdt_fops = { .owner = THIS_MODULE, + .llseek = no_llseek, .ioctl = cpu5wdt_ioctl, .open = cpu5wdt_open, .write = cpu5wdt_write, |