1
0
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:
Lennart Poettering 2018-02-26 18:34:49 +01:00
parent 51ead3e377
commit 4d219f5343

View File

@ -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);