Linked-list-based mail packets
Some checks failed
Build documentation / build-and-deploy (push) Has been cancelled
Some checks failed
Build documentation / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -88,13 +88,6 @@ struct proc_resource* proc_create_resource_mail (struct procgroup* procgroup) {
|
||||
resource->u.mail.resource = resource;
|
||||
resource->type = PR_MAIL;
|
||||
|
||||
if (!ringbuffer_init (&resource->u.mail.ringbuffer, PROC_MAIL_MAX, sizeof (struct mail_packet))) {
|
||||
id_free (&procgroup->rid_alloc, resource->rid);
|
||||
free (resource);
|
||||
spin_unlock (&procgroup->lock, fpg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rbtree_insert (struct proc_resource, &procgroup->resource_tree, &resource->resource_tree_link,
|
||||
resource_tree_link, rid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user