[patch 50/56] Fix socket creation

Florian Delizy <[email protected]> Thu, 02 Nov 2006 22:57:29 +0100
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
as suggested by Matt Miller, the sock_create is not to be used in the 
kernel side
should use sock_create_kern instead

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
use-sock_create_kern.patch (text/x-patch, 792 B)
Subject: [patch @num@/@total@] Fix socket creation 

as suggested by Matt Miller, the sock_create is not to be used in the kernel side
should use sock_create_kern instead

Index: linux/hpc/kcomd.c
===================================================================
--- linux.orig/hpc/kcomd.c	2006-11-02 22:52:57.000000000 +0100
+++ linux/hpc/kcomd.c	2006-11-02 22:52:59.000000000 +0100
@@ -25,6 +25,7 @@
 #include <net/tcp.h>
 
 #include <linux/inet.h>
+#include <linux/net.h>
 #include <hpc/kcom.h>
 #include <hpc/prototype.h>
 #include <hpc/debug.h>
@@ -40,7 +41,7 @@
 	struct socket *sock;
 	int ret, fd;
 
-	ret = sock_create(saddr->sa_family, SOCK_STREAM, IPPROTO_TCP, &sock);
+	ret = sock_create_kern(saddr->sa_family, SOCK_STREAM, IPPROTO_TCP, &sock);
 	if (ret < 0)
 		goto err_fd;