Kernel/vfs - Fixed potential lockup, logging for crap function pointers
[tpg/acess2.git] / KernelLand / Kernel / vfs / select.c
index c34700c..412cb1a 100644 (file)
@@ -402,6 +402,7 @@ int VFS_int_Select_AddThread(tVFS_SelectList *List, tThread *Thread, int MaxAllo
                        }
                        count ++;
                        if( MaxAllowed && count >= MaxAllowed ) {
+                               Mutex_Release(&List->Lock);
                                LEAVE('i', 1);
                                return 1;
                        }

UCC git Repository :: git.ucc.asn.au