X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fwatchdog%2Fsbc60xxwdt.c;h=b1c29907b83c72e1cf21ac52366ac8ddcf484970;hb=27879d9d66f2dea19cfcd0e1df8358a33447f45b;hp=d7de9880605a576e3edb7821b02e01daf93f49bf;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/char/watchdog/sbc60xxwdt.c b/drivers/char/watchdog/sbc60xxwdt.c index d7de98806..b1c29907b 100644 --- a/drivers/char/watchdog/sbc60xxwdt.c +++ b/drivers/char/watchdog/sbc60xxwdt.c @@ -168,6 +168,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) { @@ -198,8 +202,6 @@ static ssize_t fop_write(struct file * file, const char __user * buf, size_t cou static int fop_open(struct inode * inode, struct file * file) { - nonseekable_open(inode, file); - /* Just in case we're already talking to someone... */ if(test_and_set_bit(0, &wdt_is_open)) return -EBUSY;