Fix race condition in gdd

This commit is contained in:
2016-09-29 11:23:14 -05:00
committed by Andrew Johnson
parent 6623cb0112
commit 5ad61d25f6

View File

@@ -433,8 +433,10 @@ gddStatus gddApplicationTypeTable::freeDD(gdd* dd)
}
// fprintf(stderr,"Adding DD to free_list %d\n",app);
attr_table[group][app].sem.lock ();
dd->setNext(attr_table[group][app].free_list);
attr_table[group][app].free_list=dd;
attr_table[group][app].sem.unlock ();
}
else if (attr_table[group][app].type==gddApplicationTypeNormal)
{