commit | 71372ba0b328b420c750ffc2eac9a4063a0ff54e | [log] [tgz] |
---|---|---|
author | Jonas Bonn <jonas@southpole.se> | Fri Apr 14 23:36:34 2017 +0200 |
committer | Denis Kenzior <denkenz@gmail.com> | Fri Apr 14 16:44:05 2017 -0500 |
tree | 6834ca4eff8509e0cf1f7a34c01c5b23f98774cc | |
parent | 920f77b7707c0a54e8e2cc29e97319218991e709 [diff] |
qmi: duplicate callback data correctly
diff --git a/drivers/qmimodem/gprs-context.c b/drivers/qmimodem/gprs-context.c index a1ee217..247ee9e 100644 --- a/drivers/qmimodem/gprs-context.c +++ b/drivers/qmimodem/gprs-context.c
@@ -198,7 +198,7 @@ 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,