[PATCH] IPMI: return correct value from ipmi_write
authorMark Rustad <Rustad@gmail.com>
Thu, 10 Jul 2008 19:27:11 +0000 (14:27 -0500)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 11 Jul 2008 20:31:05 +0000 (20:31 +0000)
commit3976df9b04c113ab19dc0268e49c6cec6baf28f7
tree64bf78123f100a037019035a9d719348c385e53e
parent61ca9daa2ca3022dc9cb22bd98e69c1b61e412ad
[PATCH] IPMI: return correct value from ipmi_write

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.

Signed-off-by: Mark Rustad <MRustad@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/ipmi/ipmi_watchdog.c