[PATCH 2/2] libmbim-glib, proxy: Clamp standard service subscribe list to basic-connect to dss
Aleksander Morgado
aleksander at aleksander.es
Thu Jul 3 07:10:16 PDT 2014
On Wed, Jul 2, 2014 at 7:52 PM, Greg Suarez <gpsuarez2512 at gmail.com> wrote:
> ---
> src/libmbim-glib/mbim-proxy.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Pushed the commit to the "greg/proxy" branch upstream.
> diff --git a/src/libmbim-glib/mbim-proxy.c b/src/libmbim-glib/mbim-proxy.c
> index d89aac6..73b6a26 100644
> --- a/src/libmbim-glib/mbim-proxy.c
> +++ b/src/libmbim-glib/mbim-proxy.c
> @@ -546,10 +546,10 @@ standard_service_subscribe_list_new (void)
> MbimEventEntry **out;
>
>
> - out = g_new0 (MbimEventEntry *, MBIM_SERVICE_PROXY_CONTROL);
> + out = g_new0 (MbimEventEntry *, MBIM_SERVICE_MS_FIRMWARE_ID);
>
> for (service = MBIM_SERVICE_BASIC_CONNECT, i = 0;
> - service < MBIM_SERVICE_PROXY_CONTROL;
> + service < MBIM_SERVICE_MS_FIRMWARE_ID;
> service++, i++) {
> out[i] = g_new0 (MbimEventEntry, 1);
> memcpy (&out[i]->device_service_id, mbim_uuid_from_service (service), sizeof (MbimUuid));
> --
> 1.9.3
>
--
Aleksander
https://aleksander.es
More information about the libmbim-devel
mailing list