aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-mbim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-12-15 21:57:57 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2022-12-18 21:54:58 +0000
commit309a8a515bf922b679f36971bffc2999bdc6e293 (patch)
treed0d727020ff5eb83604f4f9bcd6bc62810feabb1 /src/mm-port-mbim.h
parenta20f2428eea3fa6fd83edeb5f1a844926b4a5b1c (diff)
port-mbim: implement the new generic 'removed' signal
Letting the MMBroadbandModemMbim listen for the notifications of the MbimDevice was not a good idea, especially since no explicit reference to the device object was hold in the modem object. This leads to race conditions in which the MbimDevice outlives the MMBroadbandModemMbim and the MMPortMbim, and when the "device-removed" signal is triggered, the program crashes. The MMPortMbim will now emit its own 'removed' signals when the underlying MbimDevice emits "device-removed', ensuring that the signal handler is properly cleared up during the MMPortMbim disposal. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/518
Diffstat (limited to 'src/mm-port-mbim.h')
0 files changed, 0 insertions, 0 deletions