diff options
author | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-14 04:46:34 +0000 |
---|---|---|
committer | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-14 04:46:34 +0000 |
commit | 2c3ecd000e86ff12e1f1aa66e55514b94a39b0d0 (patch) | |
tree | 146c0389b647e95d0b8d1dfc81774ff77133f686 | |
parent | 9353ef4694b128c7b9a8083e940223959770139b (diff) |
fix watchdog seek test (#2383)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8772 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c | 2 |
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 2acbd941d..2ae83e1cd 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 */ |