[Devel] [PATCH] Fix build when CONFIG_INET=n

Dan Smith danms at us.ibm.com
Thu Apr 8 09:00:53 PDT 2010


Signed-off-by: Dan Smith <danms at us.ibm.com>
---
 checkpoint/sys.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/checkpoint/sys.c b/checkpoint/sys.c
index 45d3e7a..7e1ea1f 100644
--- a/checkpoint/sys.c
+++ b/checkpoint/sys.c
@@ -259,7 +259,9 @@ static void ckpt_ctx_free(struct ckpt_ctx *ctx)
 
 	kfree(ctx->pids_arr);
 
+#ifdef CONFIG_NETNS_CHECKPOINT
 	sock_listening_list_free(&ctx->listen_sockets);
+#endif
 
 	kfree(ctx);
 }
-- 
1.6.2.5

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list