we should really check whether the devices are used before reloading the driver

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24597 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-03-26 20:51:02 +00:00
parent a7a306d1a6
commit 395880e0a9
1 changed files with 1 additions and 0 deletions

View File

@ -1794,6 +1794,7 @@ devfs_open(fs_volume _fs, fs_vnode _vnode, int openMode, fs_cookie *_cookie)
// TODO: we might want to check if the current node does still exist
// (it should fail in the driver's open(), though, if it doesn't)
if (driver != NULL
&& (driver->devices_used == 0)
&& (driver->image < 0 || driver->binary_updated)) {
status = reload_driver(driver);
if (status < B_OK)