qcacmn: Increment skb users for TSO pkt before enqueue of first segment
TSO packet segments are enqueued to the HW individually. The skb users count is incremented for each additional segment, so that it is freed only when the TX completion for the last segment is received. Currently the skb users is incremented for the additional TSO segments after the previous segment has been enqueued to the HW. Due to this, there is a chance for the tx completion for the first TSO segment to be received even before the skb users is incremented to account for the remaining TSO segments, thereby leading to use-after-free scenarios. Fix this by incrementing the skb users for additional TSO segment before enqueueing the previous TSO segment to the HW. Change-Id: Idebc28719ba6f0223d5454e15c3cde349803816e CRs-Fixed: 2801777
Loading
Please register or sign in to comment