qmi: duplicate callback data correctly

This commit is contained in:
Jonas Bonn 2017-04-14 23:36:34 +02:00 committed by Denis Kenzior
parent 920f77b770
commit 71372ba0b3
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ static void start_net_cb(struct qmi_result *result, void *user_data)
data->pkt_handle = handle;
/* Duplicate cbd, the old one will be freed when this method returns */
cbd = cb_data_new(cb, user_data);
cbd = cb_data_new(cb, cbd->data);
cbd->user = gc;
if (qmi_service_send(data->wds, QMI_WDS_GET_SETTINGS, NULL,