Revert "VMCI: Fix use-after-free when removing resource in vmci_resource_remove()"
This reverts commit 7cfe24a873
.
This commit is contained in:
parent
10e292d1f6
commit
cdd2f8b719
1 changed files with 1 additions and 2 deletions
|
@ -144,8 +144,7 @@ void vmci_resource_remove(struct vmci_resource *resource)
|
|||
spin_lock(&vmci_resource_table.lock);
|
||||
|
||||
hlist_for_each_entry(r, &vmci_resource_table.entries[idx], node) {
|
||||
if (vmci_handle_is_equal(r->handle, resource->handle) &&
|
||||
resource->type == r->type) {
|
||||
if (vmci_handle_is_equal(r->handle, resource->handle)) {
|
||||
hlist_del_init_rcu(&r->node);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue