mesh: fix double-free of outbound tx data
authorBrian Gix <brian.gix@intel.com>
Thu, 13 Aug 2020 17:43:14 +0000 (10:43 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commitdd49be58bb648043832bf280e8b19d8968d577b4
treeb09731fc95d0bf1ff52e0a58142f35d08aa7fc9d
parent9e0e5fabb8e89cd11448e0e637a4130dee5beb8f
mesh: fix double-free of outbound tx data

Due to the asyncronous multi-step process to send a packet on an HCI
socket, an outbound packet could be superseded before send procedure
is completed. This change ensures that at any stage in the process,
that the pointer to the packet has been fully disposed.

Change-Id: I32121f72abe6abe5f54607e41381397272059bcf
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/mesh-io-generic.c