Changeset 4248

Show
Ignore:
Timestamp:
08/06/08 09:31:26 (5 months ago)
Author:
tobias
Message:

added missing cleanup on failure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dumm/patches/mconsole-exec-2.6.26.patch

    r4239 r4248  
    11--- a/arch/um/drivers/mconsole_kern.c   2008-07-13 23:51:29.000000000 +0200 
    2 +++ b/arch/um/drivers/mconsole_kern.c   2008-07-31 14:04:57.000000000 +0200 
     2+++ b/arch/um/drivers/mconsole_kern.c   2008-08-06 09:32:52.000000000 +0200 
    33@@ -4,6 +4,7 @@ 
    44  * Licensed under the GPL 
     
    1818  
    1919 #include "init.h" 
    20 @@ -199,6 +202,64 @@ 
     20@@ -199,6 +202,65 @@ 
    2121 } 
    2222 #endif 
     
    5757+   res = call_usermodehelper_exec(sub_info, UMH_WAIT_EXT);  
    5858+   if (res < 0) { 
     59+       call_usermodehelper_freeinfo(sub_info); 
    5960+       mconsole_reply(req, "call_usermodehelper_exec failed", 1, 0); 
    6061+       return; 
     
    8384 { 
    8485    char path[64]; 
    85 @@ -270,6 +331,7 @@ 
     86@@ -270,6 +332,7 @@ 
    8687     stop - pause the UML; it will do nothing until it receives a 'go' \n\ 
    8788     go - continue the UML after a 'stop' \n\