fix watchdog seek test (#2383)
authorejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 Sep 2007 04:46:34 +0000 (04:46 +0000)
committerejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 Sep 2007 04:46:34 +0000 (04:46 +0000)
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

index 2acbd94..2ae83e1 100644 (file)
@@ -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 */
This page took 0.027837 seconds and 4 git commands to generate.