X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fwatchdog%2Fw83877f_wdt.c;h=21270dad0859110d88ef87e7a52a220282ccb6ac;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=bccbd4d6ac2d94b2a3cf38b225d3719798ad33a0;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/char/watchdog/w83877f_wdt.c b/drivers/char/watchdog/w83877f_wdt.c index bccbd4d6a..21270dad0 100644 --- a/drivers/char/watchdog/w83877f_wdt.c +++ b/drivers/char/watchdog/w83877f_wdt.c @@ -190,6 +190,10 @@ static void wdt_keepalive(void) static ssize_t fop_write(struct file * file, const char __user * buf, size_t count, loff_t * ppos) { + /* We can't seek */ + if(ppos != &file->f_pos) + return -ESPIPE; + /* See if we got the magic character 'V' and reload the timer */ if(count) { @@ -226,7 +230,7 @@ static int fop_open(struct inode * inode, struct file * file) /* Good, fire up the show */ wdt_startup(); - return nonseekable_open(inode, file); + return 0; } static int fop_close(struct inode * inode, struct file * file)