From 26533c84b8e4d2a451a55120b087e66f13b97571 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Thu, 22 Apr 2021 08:47:07 +0200 Subject: port-qmi: fix crash when QRTR is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix typo causing crash when WITH_QRTR is undefined: [6596]: [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 --- src/mm-port-qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3