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: ec375bd959
("port-qmi: add support for QRTR")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
This commit is contained in:

committed by
Aleksander Morgado

parent
e57c59bf88
commit
26533c84b8
@@ -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
|
||||
|
Reference in New Issue
Block a user