From 2c3ecd000e86ff12e1f1aa66e55514b94a39b0d0 Mon Sep 17 00:00:00 2001 From: ejka Date: Fri, 14 Sep 2007 04:46:34 +0000 Subject: fix watchdog seek test (#2383) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8772 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ar7/files/drivers/char') 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 */ -- cgit v1.2.3