mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +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_stop(sd);
|
||||||
session_device_notify(sd, SESSION_DEVICE_RELEASE);
|
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);
|
LIST_REMOVE(sd_by_device, sd->device->session_devices, sd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user