[PATCH] bearer-mbim: avoid calling mbim_message_unref on NULL MbimMessage
Aleksander Morgado
aleksander at aleksander.es
Thu Jul 27 08:24:10 UTC 2017
On 27/07/17 03:25, Ben Chan wrote:
> ---
> src/mm-bearer-mbim.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Thanks, pushed to git master and backported to mm-1-6.
> 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
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list