From 4aee41218ab607380d86fd2add231d92479cb373 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sat, 25 Feb 2012 12:07:41 +0000 Subject: [PATCH] Forgot init_mutex ... git-svn-id: svn://kolibrios.org@2403 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/network/socket.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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]