when acquiring results in an error, the resource should be reset to avoid a crash on delete
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25748 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
710b77326d
commit
19b07e67d2
|
@ -89,6 +89,7 @@ io_resource_private::Acquire(const io_resource& resource)
|
|||
// This range is already covered by someone else
|
||||
// TODO: we might want to ignore resources that belong to
|
||||
// a node that isn't used.
|
||||
_Init();
|
||||
return B_RESOURCE_UNAVAILABLE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue