diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-05-25 15:42:11 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-05-26 12:46:49 +0000 |
commit | 940063419a1c2eb9f6e197d60b4c7cb42702de8d (patch) | |
tree | 28d668fa2a6ed228ead32020a8e0cc6ecefa553a /src/mm-base-modem.c | |
parent | 10651ba93f89ed1320b5a88ae11679230bcac4fc (diff) |
base-manager: ensure all GUdevDevices have subsystem and name set
Under certain rare conditions (e.g. race between querying devices of a
given subsystem and the kernel tearing those devices down), the
subsystem reported for a GUdevDevice seems to be NULL.
So, ensure both subsystem and name are set on the GUdevDevice before we
process them.
The issue has been observed on GUdevDevices listed by
g_udev_client_query_by_subsystem(), not on the ones asynchronously
reported via uevents, but we add the validity check on both places for
consistency.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/343
Diffstat (limited to 'src/mm-base-modem.c')
0 files changed, 0 insertions, 0 deletions