aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/mconsole_user.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-09-29 04:58:52 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:04 -0400
commitf92afe56a0dcd271cb94e12acf1861d44c3faefd (patch)
tree4c8fc05c2dd6d9142ab3e5850ccbb5ff7b0065d1 /arch/um/drivers/mconsole_user.c
parent80c13749140284abdc23bbeed2507b7e5a3dc459 (diff)
[PATCH] uml: stack consumption reduction
Fix some stack abuse in the sysrq t path. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/mconsole_user.c')
-rw-r--r--arch/um/drivers/mconsole_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/um/drivers/mconsole_user.c b/arch/um/drivers/mconsole_user.c
index 5b2f5fe9e426..17068eb746c0 100644
--- a/arch/um/drivers/mconsole_user.c
+++ b/arch/um/drivers/mconsole_user.c
@@ -131,6 +131,10 @@ int mconsole_get_request(int fd, struct mc_request *req)
131int mconsole_reply_len(struct mc_request *req, const char *str, int total, 131int mconsole_reply_len(struct mc_request *req, const char *str, int total,
132 int err, int more) 132 int err, int more)
133{ 133{
134 /* XXX This is a stack consumption problem. It'd be nice to
135 * make it global and serialize access to it, but there are a
136 * ton of callers to this function.
137 */
134 struct mconsole_reply reply; 138 struct mconsole_reply reply;
135 int len, n; 139 int len, n;
136 140