lkml.org 
[lkml]   [2008]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectpro_arm_davinci_watchdog_fix.patch
From
Date
This patch fix bug of watchdog driver's write fuction which allow to
prevent wdt timeout.
Source: MontaVista Software, Inc.
MR:26833
Type: Fix Bug
Disposition: Submitted to Wim van Sebroek
Signed-off-by: Egorov Evgeny <eegorov@ru.mvista.com>
Description:
This patch fix bug of watchdog driver's write fuction
which allow to prevent wdt timeout.

Index: linux-2.6.18/drivers/char/watchdog/davinci_wdt.c
===================================================================
--- linux-2.6.18.orig/drivers/char/watchdog/davinci_wdt.c
+++ linux-2.6.18/drivers/char/watchdog/davinci_wdt.c
@@ -133,13 +133,8 @@ static ssize_t
davinci_wdt_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;
-
if (len)
wdt_service();
-
return len;
}
\
 
 \ /
  Last update: 2008-07-22 14:39    [W:0.037 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site