diff options
author | Ben Chan <benchan@chromium.org> | 2017-08-21 18:42:25 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-22 13:54:32 +0200 |
commit | 76c1a1119cdb08c710b5f8df35c31883a466a64a (patch) | |
tree | 023ac2e04ec02dd995ad652fb051fd7d82f991fd /src/mm-error-helpers.c | |
parent | 5a01e5406660bc4f5a3cf68254510e867f89a457 (diff) |
base-manager: avoid events of USB interface from removing MMDevice
When a USB modem is switching its USB configuration, udev may deliver
the remove events of USB interfaces associated with the old USB
configuration and the add events of USB interfaces associated with the new USB
configuration in an interleaved fashion. An interleaved remove event of USB
interface could trigger the special case handling code in
mm-base-manager.c:device_removed() and incorrectly remove a MMDevice under
probing.
See https://lists.freedesktop.org/archives/modemmanager-devel/2017-August/005626.html
for more details.
This patch adds a check to ensure that only remove events of USB
device (i.e. not interface) can trigger the special handling code.
Diffstat (limited to 'src/mm-error-helpers.c')
0 files changed, 0 insertions, 0 deletions