diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-08-06 07:31:26 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-08-06 07:31:26 +0000 |
commit | f753e03ab8613c560ecbeea4e0832368a606fa69 (patch) | |
tree | 9117c1cf4f5541bba3efc7ef06931e425ca67baf /src/dumm/patches | |
parent | 342c84ddec75672712b756ed1af1f1c04b79d4c4 (diff) | |
download | strongswan-f753e03ab8613c560ecbeea4e0832368a606fa69.tar.bz2 strongswan-f753e03ab8613c560ecbeea4e0832368a606fa69.tar.xz |
added missing cleanup on failure
Diffstat (limited to 'src/dumm/patches')
-rw-r--r-- | src/dumm/patches/mconsole-exec-2.6.26.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dumm/patches/mconsole-exec-2.6.26.patch b/src/dumm/patches/mconsole-exec-2.6.26.patch index 853b28f2a..454c4d3b6 100644 --- a/src/dumm/patches/mconsole-exec-2.6.26.patch +++ b/src/dumm/patches/mconsole-exec-2.6.26.patch @@ -1,5 +1,5 @@ --- a/arch/um/drivers/mconsole_kern.c 2008-07-13 23:51:29.000000000 +0200 -+++ b/arch/um/drivers/mconsole_kern.c 2008-07-31 14:04:57.000000000 +0200 ++++ b/arch/um/drivers/mconsole_kern.c 2008-08-06 09:32:52.000000000 +0200 @@ -4,6 +4,7 @@ * Licensed under the GPL */ @@ -17,7 +17,7 @@ #include <asm/uaccess.h> #include "init.h" -@@ -199,6 +202,64 @@ +@@ -199,6 +202,65 @@ } #endif @@ -56,6 +56,7 @@ + + res = call_usermodehelper_exec(sub_info, UMH_WAIT_EXT); + if (res < 0) { ++ call_usermodehelper_freeinfo(sub_info); + mconsole_reply(req, "call_usermodehelper_exec failed", 1, 0); + return; + } @@ -82,7 +83,7 @@ void mconsole_proc(struct mc_request *req) { char path[64]; -@@ -270,6 +331,7 @@ +@@ -270,6 +332,7 @@ stop - pause the UML; it will do nothing until it receives a 'go' \n\ go - continue the UML after a 'stop' \n\ log <string> - make UML enter <string> into the kernel log\n\ |