diff options
author | Eugene Konev <ejka@openwrt.org> | 2007-09-14 04:46:34 +0000 |
---|---|---|
committer | Eugene Konev <ejka@openwrt.org> | 2007-09-14 04:46:34 +0000 |
commit | 084c153873dbe7d5f37454393fb0007084bbf992 (patch) | |
tree | 146c0389b647e95d0b8d1dfc81774ff77133f686 /target/linux/ar7/files/drivers | |
parent | 544ef281cddfd0f3fff96bcb6cca72bd207e8772 (diff) | |
download | upstream-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/linux/ar7/files/drivers')
-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 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 */ |