Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3976df9b authored by Mark Rustad's avatar Mark Rustad Committed by Wim Van Sebroeck
Browse files

[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: default avatarMark Rustad <MRustad@gmail.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 61ca9daa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -755,9 +755,8 @@ static ssize_t ipmi_write(struct file *file,
		rv = ipmi_heartbeat();
		if (rv)
			return rv;
		return 1;
	}
	return 0;
	return len;
}

static ssize_t ipmi_read(struct file *file,