diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-17 23:34:01 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-25 14:13:03 +0100 |
commit | aba237df4ed9c465282ed9be0cba1ee6be0c9c13 (patch) | |
tree | 21e8993788919d4c0ca6ec24fe69d556ebd8ce31 /plugins/qcom-soc | |
parent | 381e2f382ba09005648669859288e2a725fe6af2 (diff) |
broadband-modem-qmi: allow lookup of QMI for data without SIO port
Diffstat (limited to 'plugins/qcom-soc')
-rw-r--r-- | plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c b/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c index b49fec40..02569037 100644 --- a/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c +++ b/plugins/qcom-soc/mm-broadband-modem-qmi-qcom-soc.c @@ -92,7 +92,8 @@ peek_port_qmi_for_data (MMBroadbandModemQmi *self, } /* Set outputs */ - *out_sio_port = sio_port_per_port_number[net_port_number]; + if (out_sio_port) + *out_sio_port = sio_port_per_port_number[net_port_number]; found = MM_PORT_QMI (rpmsg_qmi_ports->data); g_list_free_full (rpmsg_qmi_ports, g_object_unref); |