diff options
Diffstat (limited to 'drivers/char/softdog.c')
-rw-r--r-- | drivers/char/softdog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/softdog.c b/drivers/char/softdog.c index be63f08b4..c0ecaccf4 100644 --- a/drivers/char/softdog.c +++ b/drivers/char/softdog.c @@ -115,6 +115,10 @@ static void softdog_ping(void) static ssize_t softdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) { + /* Can't seek (pwrite) on this device */ + if (ppos != &file->f_pos) + return -ESPIPE; + /* * Refresh the timer. */ |