- 13 Sep, 2017 1 commit
-
-
Aleksander Morgado authored
(cherry picked from commit 5ee58513)
-
- 08 Aug, 2017 1 commit
-
-
This patch removes an unnecessary error check in the update_unlock_retries() where the error is never set. (cherry picked from commit 05a1097a)
-
- 04 Aug, 2017 2 commits
-
-
There are potential memory leaks in MMLocationGpsNmea: - When the `trace' string provided to location_gps_nmea_take_trace() isn't added to the hash table, its ownership is still considered transferred. It should thus be freed. Similarly, the `trace_type' string isn't added the hash table and should thus be freed. - mm_location_gps_nmea_add_trace() duplicates a given trace string and then passes the trace copy to location_gps_nmea_take_trace(). When location_gps_nmea_take_trace() returns FALSE, the ownership of the copy isn't transferred. mm_location_gps_nmea_add_trace() should thus free the copy. This patch fixes the above memory leaks by having location_gps_nmea_take_trace() always take the ownership of the `trace' string and internally free `trace' and `trace_type' when necessary. (cherry picked from commit e33aa019)
-
This patch fixes some potential use-after-freed issues in dms_get_ids_ready(). When an invalid ESN / MEID is retrieved, `ctx->self->priv->esn' / `ctx->self->priv->meid' is freed but not reset to NULL. If no IMEI is retrieved, `str' can be set to the already freed `ctx->self->priv->esn' / `ctx->self->priv->meid' and then propagated to a GSimpleAsyncResult object. (cherry picked from commit 0d3cca2c)
-
- 03 Aug, 2017 2 commits
-
-
This patch fixes cause_code_to_delivery_state() by adding two missing break statements for the case ERROR_CLASS_TEMPORARY and ERROR_CLASS_PERMANENT in the `switch (error_class)` statement. Without the break statements, the switch always falls through to the default and returns MM_SMS_DELIVERY_STATE_UNKNOWN for an `error_class' of value ERROR_CLASS_TEMPORARY or ERROR_CLASS_PERMANENT. (cherry picked from commit 0bb01ab6)
-
The following checks in mm_modem_firmware_select() and mm_modem_firmware_select_sync() could result in a NULL pointer dereference if `unique_id' is NULL: g_return_if_fail (unique_id != NULL || unique_id[0] == '\0') g_return_val_if_fail (unique_id != NULL || unique_id[0] == '\0', FALSE) This patch fixes the checks to properly verify that `unique_id' is neither NULL nor an empty string. (cherry picked from commit bae45907)
-
- 19 Jul, 2017 1 commit
-
-
crm_range_ready() misses a return statement after it invokes interface_initialization_step(), which will lead to an invalid access of the already freed InitAsyncContext. (cherry picked from commit 8af44d35)
-
- 23 Jun, 2017 2 commits
- 03 Mar, 2017 1 commit
-
-
clear_modem() can be invoked from set_property() and dispose(), where `self->priv->modem' may be NULL. This patch adds a null check on the modem object to make sure we don't run g_object_run_dispose() on a null modem object. (cherry picked from commit 73bfe946)
-
- 13 Feb, 2017 5 commits
-
-
Aleksander Morgado authored
(cherry picked from commit 6fb83b5e)
-
Fixes problems with GCC 6 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811583 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=94149 (cherry picked from commit c533e56e)
-
GCC 6 notices an unused constant and errors out. (cherry picked from commit 2a5909af)
-
(cherry picked from commit 99ae6777)
-
Aleksander Morgado authored
Don't rely on the automatic disconnection of the signal as the last reference of the modem object may outlive the device object. Also, setup a common clear_modem() function to dispose the internal reference of the modem object, which will take care of the signal disconnection when required. https://lists.freedesktop.org/archives/modemmanager-devel/2017-February/003907.html (cherry picked from commit 1d41685f)
-
- 10 Feb, 2017 1 commit
-
-
Aleksander Morgado authored
So that we don't leak the port names allocated within each MMModemPortInfo. ==261== 672 bytes in 84 blocks are definitely lost in loss record 7,314 of 7,383 ==261== at 0x402C51E: malloc (vg_replace_malloc.c:299) ==261== by 0x4484878: g_malloc (gmem.c:94) ==261== by 0x449D51D: g_strdup (gstrfuncs.c:363) ==261== by 0x44B5B73: g_variant_dup_string (gvariant.c:1529) ==261== by 0x44B945E: g_variant_valist_get_nnp (gvariant.c:4775) ==261== by 0x44B945E: g_variant_valist_get_leaf (gvariant.c:4945) ==261== by 0x44B945E: g_variant_valist_get (gvariant.c:5126) ==261== by 0x44B922C: g_variant_valist_get (gvariant.c:5161) ==261== by 0x44B9FC9: g_variant_get_va (gvariant.c:5388) ==261== by 0x44BA3C5: g_variant_get_child (gvariant.c:5486) ==261== by 0x6613FA8: mm_common_ports_variant_to_garray (mm-common-helpers.c:238) ==261== by 0x6601AB9: ensure_internal_ports (mm-modem.c:766) ==261== by 0x6603E42: mm_modem_peek_ports (mm-modem.c:825) ==261== by 0x65CD94D: owns_port (nm-modem-broadband.c:196) Reported-by:
Piotr Figiel <p.figiel@camlintechnologies.com> (cherry picked from commit 91613543)
-
- 08 Feb, 2017 1 commit
-
-
==261== 482 bytes in 12 blocks are definitely lost in loss record 7,290 of 7,383 ==261== at 0x402C51E: malloc (vg_replace_malloc.c:299) ==261== by 0x4484878: g_malloc (gmem.c:94) ==261== by 0x449D51D: g_strdup (gstrfuncs.c:363) ==261== by 0x44B5B73: g_variant_dup_string (gvariant.c:1529) ==261== by 0x44B945E: g_variant_valist_get_nnp (gvariant.c:4775) ==261== by 0x44B945E: g_variant_valist_get_leaf (gvariant.c:4945) ==261== by 0x44B945E: g_variant_valist_get (gvariant.c:5126) ==261== by 0x44B922C: g_variant_valist_get (gvariant.c:5161) ==261== by 0x44B9FC9: g_variant_get_va (gvariant.c:5388) ==261== by 0x44BA1DB: g_variant_get (gvariant.c:5335) ==261== by 0x664E2EF: mm_gdbus_modem_simple_call_connect_finish (mm-gdbus-modem.c:22451) ==261== by 0x6608A08: simple_connect_ready (mm-modem-simple.c:154) ==261== by 0x429136F: g_task_return_now (gtask.c:1107) ==261== by 0x4291A69: g_task_return (gtask.c:1165) (cherry picked from commit 255e4c76)
-
- 04 Jan, 2017 3 commits
-
-
(cherry picked from commit 830ef27b)
-
Aleksander Morgado authored
(cherry picked from commit 2f12d96f)
-
- 28 Sep, 2016 1 commit
-
-
Aleksander Morgado authored
Commit 001f3523 fixed this very same thing in all the other interface actions, but 3GPP USSD actions were not fixed. https://bugs.freedesktop.org/show_bug.cgi?id=97954 (cherry picked from commit e5fa0233)
-
- 01 Sep, 2015 1 commit
-
-
This patch fixes the registration reporting/checking when ModemManager is built with --with-newest-qmi-commands. apply_cs and apply_ps were not properly initialised and may never be true. Also fixes a CnP error for mm_ps_registration_state. Signed-off-by:
David McCullough <david.mccullough@accelecon.com> (cherry picked from commit 340ff7dc)
-
- 31 Aug, 2015 1 commit
-
-
Dan Williams authored
CDMA-capable modems (like a Sierra EM7355) will fail to even enable, because the internal CDMA code tries to initialize using AT commands and that fails because many MBIM modems don't have an AT port. We should figure out how to support minimal MBIM + CDMA using MBIM instead of AT-anything. [mm-broadband-modem.c:9000] enabling_step(): Modem has CDMA capabilities, enabling the Modem CDMA interface... [mm-iface-modem-cdma.c:946] mm_iface_modem_cdma_run_registration_checks(): Running registration checks (CDMA1x: 'yes', EV-DO: 'yes') [mm-broadband-modem.c:7397] setup_registration_checks_context_complete_and_free(): Will skip all QCDM-based registration checks [mm-broadband-modem.c:7418] setup_registration_checks_context_complete_and_free(): Will skip generic detailed registration check, we don't have Sprint commands [mm-iface-modem-cdma.c:768] registration_check_step(): Starting QCDM-based registration checks [mm-iface-modem-cdma.c:780] registration_check_step(): Skipping all QCDM-based checks and falling back to AT-based checks [mm-iface-modem-cdma.c:823] registration_check_step(): Starting AT-based registration checks [mm-iface-modem-cdma.c:641] get_service_status_ready(): Could not get service status: No AT port available to run command [mm-iface-modem.c:1392] __iface_modem_update_state_internal(): Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> disabled) (cherry picked from commit 2034918d)
-
- 20 Jul, 2015 1 commit
-
-
Dan Williams authored
When passing known_lock=UNKNOWN to mm_iface_modem_update_lock_info() we actually do want to ask the modem itself for locks instead of checking the cache. For example, when an unknown error is returned after performing PIN/PUK operations, the cache value may well be NONE if that was the prior lock state, and that bypasses the modem which might now be locked. Thus the state gets messed up. Reproducer is to send 'ChangePin' with the wrong "old" PIN 3 times, then send a wrong PUK. No error was returned from mmcli and the modem's lock state was shown as 'none'. (cherry picked from commit 9b051b14)
-
- 02 Jul, 2015 4 commits
-
-
Dan Williams authored
(cherry picked from commit ad2c2ad1) (cherry picked from commit e33bdc25)
-
https://bugs.freedesktop.org/show_bug.cgi?id=91032 (cherry picked from commit b7829021)
-
(cherry picked from commit 79e39125)
-
(cherry picked from commit be0a0f85)
-
- 31 Mar, 2015 1 commit
-
-
Dan Williams authored
This message gets printed for all netdevs and ttys, including most machines normal ethernet/Wi-Fi interfaces. It seems a bit less critical than 'warning' level would indicate. ModemManager[32097]: <warn> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin ModemManager[32097]: <warn> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0': not supported by any plugin (cherry picked from commit 9293fd2b)
-
- 02 Mar, 2015 1 commit
-
-
Use debug level, which has to be explicitly requested by the user. https://bugs.freedesktop.org/show_bug.cgi?id=87498 (cherry picked from commit 0dd707a2)
-
- 26 Jan, 2015 1 commit
-
-
Dan Williams authored
MM probing appears to make 'visor' module die; and anyway most of the devices driven by 'visor' are not phones, and of the 3 that are phones they are so old (2002 - 2005 era) that nobody is likely using them for dialup anymore. http://www.spinics.net/lists/linux-usb/msg120483.html
-
- 28 Oct, 2014 1 commit
-
-
Dan Williams authored
-
- 11 Feb, 2014 1 commit
-
-
This device ID is used in a Lenovo Thinkpad T440s. Link: http://forums.debian.net/viewtopic.php?f=7&t=107986&sid=4f81b9c1a8f4563f26fec24f7b65aaea&start=15 Signed-off-by:
Arnd Hannemann <arnd@arndnet.de>
-
- 04 Feb, 2014 1 commit
-
-
- 30 Jan, 2014 4 commits
-
-
Aleksander Morgado authored
-
Aleksander Morgado authored
-
Aleksander Morgado authored
-
-
- 29 Jan, 2014 1 commit
-
-
Some modems (e.g. ZTE MF190) report UMTS access technology as "3G": --> 'AT+ZPAS?<CR>' <-- '<CR><LF>+ZPAS: "3G","CS_PS"<CR><LF><CR><LF>OK<CR><LF>'
-
- 26 Jan, 2014 1 commit
-
-
otherwise we fail with: CC ModemManager-mm-broadband-modem-qmi.o mm-broadband-modem-qmi.c: In function ‘process_gsm_info’: mm-broadband-modem-qmi.c:4182:18: error: ‘egprs_support_valid’ undeclared (first use in this function) &egprs_support_valid, &egprs_support, ^ mm-broadband-modem-qmi.c:4182:18: note: each undeclared identifier is reported only once for each function it appears in mm-broadband-modem-qmi.c:4182:40: error: ‘egprs_support’ undeclared (first use in this function) &egprs_support_valid, &egprs_support,
-