summaryrefslogtreecommitdiffstats
path: root/drivers/char/acquirewdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/acquirewdt.c')
-rw-r--r--drivers/char/acquirewdt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/acquirewdt.c b/drivers/char/acquirewdt.c
index 8d2600f41..be1c28456 100644
--- a/drivers/char/acquirewdt.c
+++ b/drivers/char/acquirewdt.c
@@ -64,6 +64,10 @@ static void acq_ping(void)
static ssize_t acq_write(struct file *file, const char *buf, size_t count, loff_t *ppos)
{
+ /* Can't seek (pwrite) on this device */
+ if (ppos != &file->f_pos)
+ return -ESPIPE;
+
if(count)
{
acq_ping();