Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: > it is a error do count++ here, it will let the following compare > (after 8 lines) " if (!count)" always be false. I take back what I said. It looks like it's checking for some non-zero number of traps, which would be for the instruct

Re: [PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-24 Thread Jeff Dike
On Sun, Sep 23, 2007 at 08:26:53PM +0800, lepton wrote: > it is a error do count++ here, it will let the following compare >(after 8 lines) " if (!count)" always be false. > - count++; Have you booted a UML with this change? It looks to me like you'll just make it crash on boot e

[PATCH] 2.6.22.6 user-mode linux: fix error in check_sysemu

2007-09-23 Thread lepton
it is a error do count++ here, it will let the following compare (after 8 lines) " if (!count)" always be false. Signed-off-by: Lepton Wu <[EMAIL PROTECTED]> diff -X linux-2.6.22.6/Documentation/dontdiff -pr -U 8 linux-2.6.22.6/arch/um/os-Linux/start_up.c linux-2.6.22.6-uml/arch/um/os-Linu