Re: [PATCH 1/1] meshctl: Fix meshctl crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 6, 2019 at 9:44 AM Anurag Biradar <biradar.a@xxxxxxxxxxx> wrote:
>
> list entry was not updated properly during flushing of packets
>
> <call stack>
> flush_pkt_list (list=0x638b40 <net+64>) at tools/mesh-gatt/net.c:1199
> net_session_close (data_in=<optimized out>) at tools/mesh-gatt/net.c:1979
> disconnect_device (cb=cb@entry=0x0, user_data=user_data@entry=0x0)
>   at tools/meshctl.c:791
> cmd_start_prov (argc=<optimized out>, argv=0x6a9fb0)
>   at tools/meshctl.c:1789
> ---
>  tools/mesh-gatt/net.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/mesh-gatt/net.c b/tools/mesh-gatt/net.c
> index e8171c6..d74e1f5 100644
> --- a/tools/mesh-gatt/net.c
> +++ b/tools/mesh-gatt/net.c
> @@ -1197,6 +1197,7 @@ static void flush_pkt_list(GList **list)
>                 pkt = l->data;
>                 *list = g_list_remove(*list, pkt);
>                 g_free(pkt);
> +               l = g_list_first(*list);
>         }
>  }
>
> --
> 2.7.4
>

Gentle Ping.

Thanks
Anurag



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux