wlan: Reallocate skb before reusing in wlan_logging pkt_stats filled list

In wlan_queue_pkt_stats_for_app, if the pkt_stat_free_list is empty,
the current node is taken from the head of pkt_stat_filled_list,
detached from the list and skb is set for re-use. This current node
is reattached back to the tail of the pkt_stat_filled_list for the next
log. This could lead to skb tail overrun as skb is not reset before
re-use.

Free the existing skb allocated to the pkt_stat_filled_list head
and allocate again to have a clean skb.

Change-Id: I6bb5de71c8bed062022622cb5394b20d61d35545
CRs-Fixed: 2195551
1 file changed
tree: e8054a5074d3d464f87a35f2decf6dd370836943
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile