On Fri, 2009-01-02 at 15:13 +0530, Veerendra wrote:
> Signed-off-by: Veerendra C <[email protected]>
> Index: pidns/pidns13.c
Thanks Veerendra. But, please send you patches on LTPROOT, and, not from
any particular working directory.
Regards--
Subrata
> ===================================================================
> --- pidns.orig/pidns13.c
> +++ pidns/pidns13.c
> @@ -196,7 +196,7 @@ int child_fn(void *arg)
> int main(int argc, char *argv[])
> {
> int status, stack_size=getpagesize() * 4;
> - int *cinit_no;
> + int *cinit_no = malloc(sizeof(int));
> void *stack1 = malloc(stack_size);
> void *stack2 = malloc(stack_size);
> void *childstack1, *childstack2;
> @@ -209,8 +209,8 @@ int main(int argc, char *argv[])
> }
>
> /* container creation on PID namespace */
> - if (!stack1 || !stack2) {
> - tst_resm(TBROK, "parent: stack creation failed.");
> + if (!stack1 || !stack2 || !cinit_no) {
> + tst_resm(TBROK, "memory allocation failed.");
> cleanup();
> }
>
>
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list