aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2021-04-22 08:47:07 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-04-22 09:29:07 +0200
commit26533c84b8e4d2a451a55120b087e66f13b97571 (patch)
treee5ded8d975c35ef92512d828ed080ffe57d59800
parente57c59bf88615129efc0241957749102ea8af90d (diff)
port-qmi: fix crash when QRTR is disabled
Fix typo causing crash when WITH_QRTR is undefined: [6596]: <debug> [1619029470.854688] [cdc-wdm0/probe] probing QMI... Thread 1 "ModemManager" received signal SIGSEGV, Segmentation fault. 0x77a7310f in install_property_internal () from /usr/lib/libgobject-2.0.so.0 (gdb) bt #0 0x77a7310f in install_property_internal () from /usr/lib/libgobject-2.0.so.0 #1 0x77a731db in validate_and_install_class_property () from /usr/lib/libgobject-2.0.so.0 Backtrace stopped: frame did not save the PC Fixes: ec375bd959f0 ("port-qmi: add support for QRTR") Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--src/mm-port-qmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c
index c74a87b5..51f71536 100644
--- a/src/mm-port-qmi.c
+++ b/src/mm-port-qmi.c
@@ -35,7 +35,7 @@ G_DEFINE_TYPE (MMPortQmi, mm_port_qmi, MM_TYPE_PORT)
enum {
PROP_0,
-#if WITH_QMI
+#if WITH_QRTR
PROP_NODE,
#endif
PROP_LAST