mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-27 14:03:43 +03:00
logind: make sure we don't trip up on half-initialized session devices
Fixes: #8035
This commit is contained in:
parent
51ead3e377
commit
4d219f5343
@ -420,7 +420,7 @@ void session_device_free(SessionDevice *sd) {
|
||||
|
||||
session_device_stop(sd);
|
||||
session_device_notify(sd, SESSION_DEVICE_RELEASE);
|
||||
close_nointr(sd->fd);
|
||||
safe_close(sd->fd);
|
||||
|
||||
LIST_REMOVE(sd_by_device, sd->device->session_devices, sd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user