* [PATCH] qmi: gprs-context: Actually send param to qmi_service_send
@ 2024-04-25 20:11 Denis Kenzior
2024-04-25 20:20 ` patchwork-bot+ofono
0 siblings, 1 reply; 2+ messages in thread
From: Denis Kenzior @ 2024-04-25 20:11 UTC (permalink / raw)
To: ofono; +Cc: Denis Kenzior
The parameter structure was built, but not included into the
qmi_service_send call resulting in a memory leak.
Fixes: b6ced6c5c4c9 ("qmi: gprs-context: Request certain TLVs to be included")
---
drivers/qmimodem/gprs-context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/qmimodem/gprs-context.c b/drivers/qmimodem/gprs-context.c
index 055378dc102f..4004876bab87 100644
--- a/drivers/qmimodem/gprs-context.c
+++ b/drivers/qmimodem/gprs-context.c
@@ -194,7 +194,7 @@ static void start_net_cb(struct qmi_result *result, void *user_data)
param = qmi_param_new_uint32(PARAM_REQUESTED_SETTINGS,
requested_settings);
- if (qmi_service_send(data->wds, QMI_WDS_GET_CURRENT_SETTINGS, NULL,
+ if (qmi_service_send(data->wds, QMI_WDS_GET_CURRENT_SETTINGS, param,
get_settings_cb, cbd, cb_data_unref) > 0) {
cb_data_ref(cbd);
return;
--
2.44.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-25 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 20:11 [PATCH] qmi: gprs-context: Actually send param to qmi_service_send Denis Kenzior
2024-04-25 20:20 ` patchwork-bot+ofono
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.