aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorEugene Konev <ejka@openwrt.org>2007-09-14 04:46:34 +0000
committerEugene Konev <ejka@openwrt.org>2007-09-14 04:46:34 +0000
commit084c153873dbe7d5f37454393fb0007084bbf992 (patch)
tree146c0389b647e95d0b8d1dfc81774ff77133f686 /target
parent544ef281cddfd0f3fff96bcb6cca72bd207e8772 (diff)
downloadupstream-084c153873dbe7d5f37454393fb0007084bbf992.tar.gz
upstream-084c153873dbe7d5f37454393fb0007084bbf992.tar.bz2
upstream-084c153873dbe7d5f37454393fb0007084bbf992.zip
fix watchdog seek test (#2383)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8772 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c2
1 files changed, 1 insertions, 1 deletions
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 */