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:
@@ -89,6 +89,7 @@ io_resource_private::Acquire(const io_resource& resource)
|
|||||||
// This range is already covered by someone else
|
// This range is already covered by someone else
|
||||||
// TODO: we might want to ignore resources that belong to
|
// TODO: we might want to ignore resources that belong to
|
||||||
// a node that isn't used.
|
// a node that isn't used.
|
||||||
|
_Init();
|
||||||
return B_RESOURCE_UNAVAILABLE;
|
return B_RESOURCE_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user