bearer-mbim: fix error handling in connection status reload

We should not set the GError as autoptr(), as we're returning it as
part of the GTask.
This commit is contained in:
Aleksander Morgado
2021-11-21 15:04:55 +01:00
parent 647a438b43
commit afb213ac05

View File

@@ -1592,8 +1592,8 @@ reload_connection_status_ready (MbimDevice *device,
guint32 session_id;
MbimActivationState activation_state;
MMBearerConnectionStatus bearer_connection_status = MM_BEARER_CONNECTION_STATUS_UNKNOWN;
GError *error = NULL;
g_autoptr(MbimMessage) response = NULL;
g_autoptr(GError) error = NULL;
self = g_task_get_source_object (task);