[PATCH] bearer-mbim: avoid calling mbim_message_unref on NULL MbimMessage
Ben Chan
benchan at chromium.org
Thu Jul 27 01:25:38 UTC 2017
---
src/mm-bearer-mbim.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index 439de812..63bb0579 100644
--- a/src/mm-bearer-mbim.c
+++ b/src/mm-bearer-mbim.c
@@ -173,7 +173,9 @@ packet_statistics_query_ready (MbimDevice *device,
g_task_return_error (task, error);
g_object_unref (task);
- mbim_message_unref (response);
+
+ if (response)
+ mbim_message_unref (response);
}
static void
--
2.14.0.rc0.400.g1c36432dff-goog
More information about the ModemManager-devel
mailing list