fix(boot): guard storage signal queries with the host driver root
This commit is contained in:
1 parent
0ba187fbfd
commit
bb77e3727b
1 file changed
+2
@@ -243,6 +243,8 @@ impl BlockDevice for Service {
|
||||
self.inner.posted()
|
||||
}
|
||||
fn signals(&self) -> bool {
|
||||
// SAFETY: as in read(); this query reaches shared controller state.
|
||||
let _root = unsafe { RestoreRoot::enter(self.root) };
|
||||
self.inner.signals()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user