drm: fix dropping master when killed from another tty
This commit is contained in:
parent
a745eace15
commit
51f0050d68
|
@ -264,6 +264,7 @@ impl<A: AsRawFd + 'static> Drop for LegacyDrmDevice<A> {
|
|||
error!(self.logger, "Failed to reset crtc ({:?}). Error: {}", handle, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
if self.priviledged {
|
||||
if let Err(err) = self.drop_master() {
|
||||
error!(self.logger, "Failed to drop drm master state. Error: {}", err);
|
||||
|
@ -271,4 +272,3 @@ impl<A: AsRawFd + 'static> Drop for LegacyDrmDevice<A> {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue