+35
−22
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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