From: Eugene Konev Date: Fri, 14 Sep 2007 04:46:34 +0000 (+0000) Subject: fix watchdog seek test (#2383) X-Git-Tag: reboot~28129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fbd19377fa60739f3ad68b7cf67e4df601926b8c;p=oweals%2Fopenwrt.git fix watchdog seek test (#2383) SVN-Revision: 8772 --- diff --git a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c index 2acbd941d5..2ae83e1cd1 100644 --- a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c +++ b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c @@ -218,7 +218,7 @@ static struct notifier_block ar7_wdt_notifier = { static ssize_t ar7_wdt_write(struct file *file, const char *data, size_t len, loff_t *ppos) { - if (ppos != &file->f_pos) + if (*ppos != file->f_pos) return -ESPIPE; /* check for a magic close character */