Close the file handle if it is not the cpu frequency driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31490 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -212,6 +212,8 @@ CPUFreqDriverInterface::_FindSpeedStepDriver(const char* path)
|
|||||||
sizeof(uint32));
|
sizeof(uint32));
|
||||||
if (ret == B_OK && magicId == kMagicFreqID)
|
if (ret == B_OK && magicId == kMagicFreqID)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
else
|
||||||
|
close(fDriverHandler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user