Commit 4b378dd8 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[WATCHDOG] eurotech nowayout fixes from 2.4

parent 8ec11413
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
static int eurwdt_is_open; static int eurwdt_is_open;
static spinlock_t eurwdt_lock; static spinlock_t eurwdt_lock;
static char eur_expect_close;
/* /*
* You must set these - there is no sane way to probe for this board. * You must set these - there is no sane way to probe for this board.
...@@ -235,6 +236,19 @@ loff_t *ppos) ...@@ -235,6 +236,19 @@ loff_t *ppos)
return -ESPIPE; return -ESPIPE;
if (count) { if (count) {
if (!nowayout) {
size_t i;
eur_expect_close = 0;
for (i = 0; i != count; i++) {
char c;
if(get_user(c, buf+i))
return -EFAULT;
if (c == 'V')
eur_expect_close = 42;
}
}
eurwdt_ping(); /* the default timeout */ eurwdt_ping(); /* the default timeout */
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment