The patch titled ipmi: return correct value from ipmi_write has been removed from the -mm tree. Its filename was ipmi-return-correct-value-from-ipmi_write.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: ipmi: return correct value from ipmi_write From: Mark Rustad <mrustad@xxxxxxxxx> This patch corrects the handling of write operations to the IPMI watchdog to work as intended by returning the number of characters actually processed. Without this patch, an "echo V >/dev/watchdog" enables the watchdog if IPMI is providing the watchdog function. I have not checked all of the watchdogs to see if there are others that have this problem, but the one I was using before using the IPMI one did work right. It was also a big surprise how much the default watchdog timeout varies from one to another. Let me tell you that the 10 second default for the IPMI watchdog was a real sore spot while tracking this problem down! This problem goes back at least as far as 2.6.20. Signed-off-by: Mark Rustad <MRustad@xxxxxxxxx> Cc: Corey Minyard <cminyard@xxxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/ipmi/ipmi_watchdog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/char/ipmi/ipmi_watchdog.c~ipmi-return-correct-value-from-ipmi_write drivers/char/ipmi/ipmi_watchdog.c --- a/drivers/char/ipmi/ipmi_watchdog.c~ipmi-return-correct-value-from-ipmi_write +++ a/drivers/char/ipmi/ipmi_watchdog.c @@ -755,9 +755,8 @@ static ssize_t ipmi_write(struct file *f rv = ipmi_heartbeat(); if (rv) return rv; - return 1; } - return 0; + return len; } static ssize_t ipmi_read(struct file *file, _ Patches currently in -mm which might be from mrustad@xxxxxxxxx are -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html