diff --git a/kernel/branches/net/network/socket.inc b/kernel/branches/net/network/socket.inc index 65ad5fd527..70f3438b37 100644 --- a/kernel/branches/net/network/socket.inc +++ b/kernel/branches/net/network/socket.inc @@ -516,7 +516,7 @@ align 4 call SOCKET_ring_create pusha - lea ecx, [ebx + SOCKET.mutex] + lea ecx, [eax + SOCKET.mutex] call mutex_unlock popa @@ -1379,6 +1379,12 @@ SOCKET_alloc: mov ebx, [ebx + TASKDATA.pid] mov [eax + SOCKET.PID], ebx +; init mutex + pusha + lea ecx, [eax + SOCKET.mutex] + call mutex_init + popa + ; add socket to the list by re-arranging some pointers mov ebx, [net_sockets + SOCKET.NextPtr]