PERFORCE change 132996 for review
Steve Wise
swise at FreeBSD.org
Thu Jan 10 15:12:11 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132996
Change 132996 by swise at swise:vic10:iwarp on 2008/01/10 23:11:18
Fixed another idr bug.
Affected files ...
.. //depot/projects/iwarp/sys/sys/linux_compat.h#11 edit
Differences ...
==== //depot/projects/iwarp/sys/sys/linux_compat.h#11 (text+ko) ====
@@ -112,8 +112,9 @@
struct idr *i;
for (i=idp->next;i;i=i->next)
- if (i->key > newid)
- newid = i->key;
+ if (i->key == newid)
+ return -EEXIST;
+
i=malloc(sizeof(struct idr),M_TEMP,M_WAITOK);
i->key=newid;
i->value=ptr;
More information about the p4-projects
mailing list