[Haiku-commits] r28292 - haiku/trunk/src/system/kernel
bonefish at BerliOS
bonefish at mail.berlios.de
Thu Oct 23 10:49:25 CEST 2008
Author: bonefish
Date: 2008-10-23 10:49:25 +0200 (Thu, 23 Oct 2008)
New Revision: 28292
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=28292&view=rev
Modified:
haiku/trunk/src/system/kernel/sem.cpp
Log:
0 is a valid semaphore ID.
Modified: haiku/trunk/src/system/kernel/sem.cpp
===================================================================
--- haiku/trunk/src/system/kernel/sem.cpp 2008-10-23 08:18:48 UTC (rev 28291)
+++ haiku/trunk/src/system/kernel/sem.cpp 2008-10-23 08:49:25 UTC (rev 28292)
@@ -221,7 +221,7 @@
if (IS_KERNEL_ADDRESS(num)) {
dump_sem((struct sem_entry *)num);
return 0;
- } else if (num > 0) {
+ } else if (num >= 0) {
uint32 slot = num % sMaxSems;
if (sSems[slot].id != (int)num) {
kprintf("sem %ld (%#lx) doesn't exist!\n", num, num);
More information about the Haiku-commits
mailing list