drm: fix dropping master when killed from another tty

This commit is contained in:
Victor Brekenfeld 2018-11-25 00:33:44 +01:00
parent a745eace15
commit 51f0050d68
1 changed files with 4 additions and 4 deletions

View File

@ -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> {
}
}
}
}