drm: fix dropping master when killed from another tty
This commit is contained in:
parent
a745eace15
commit
51f0050d68
|
@ -264,10 +264,10 @@ 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);
|
||||
}
|
||||
}
|
||||
if self.priviledged {
|
||||
if let Err(err) = self.drop_master() {
|
||||
error!(self.logger, "Failed to drop drm master state. Error: {}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue