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,10 +264,10 @@ impl<A: AsRawFd + 'static> Drop for LegacyDrmDevice<A> {
error!(self.logger, "Failed to reset crtc ({:?}). Error: {}", handle, err); error!(self.logger, "Failed to reset crtc ({:?}). Error: {}", handle, err);
} }
} }
if self.priviledged { }
if let Err(err) = self.drop_master() { if self.priviledged {
error!(self.logger, "Failed to drop drm master state. Error: {}", err); if let Err(err) = self.drop_master() {
} error!(self.logger, "Failed to drop drm master state. Error: {}", err);
} }
} }
} }