uml: fix infinite mconsole loop
authorKarol Swietlicki <magotari@gmail.com>
Tue, 5 Feb 2008 06:31:25 +0000 (22:31 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:31 +0000 (09:44 -0800)
commitcc0be0fb3fd4bd2c363ef1b5c968cd6f2ce478cf
tree19a4a1127fed020ec1c08264117517e49ddad0ea
parentab26a5276c1b0945c3281a73b3a89d025906c880
uml: fix infinite mconsole loop

This patch takes care of a problem with the stopping code.

The function inside the while condition returns 0 to signify a problem.  A
problem could be for example a bad command or a bad version of the mconsole
client.  A bad command would terminate the stopping loop and resume the
kernel.  This is a problem.

A better solution is to make the loop infinite and don't leave it until we are
explicitly told to.

Signed-off-by: Karol Swietlicki <magotari@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/mconsole_kern.c