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:
Jérôme Duval 2008-06-01 15:27:00 +00:00
parent 710b77326d
commit 19b07e67d2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}