Skip to content

modem-manager: Fix crash on removing a modem without location capabilities

on_mm_object_removed () should obviously act on the modem object that this notification pertains to, not the currently in-use modem.

If there was only a modem without location capabilities present then priv->mm_object was NULL so the code would crash on a NULL pointer dereference.

Merge request reports

Loading