aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorGrant Grundler <[email protected]>2022-05-09 19:28:23 -0700
committerDavid S. Miller <[email protected]>2022-05-11 12:25:07 +0100
commit62e0ae0f4020250f961cf8d0103a4621be74e077 (patch)
treeb55f40d28ccf303199b87ff36ae6a951f48db433 /tools/perf/scripts/python/intel-pt-events.py
parent0807ce0b010418a191e0e4009803b2d74c3245d5 (diff)
net: atlantic: fix "frag[0] not initialized"
In aq_ring_rx_clean(), if buff->is_eop is not set AND buff->len < AQ_CFG_RX_HDR_SIZE, then hdr_len remains equal to buff->len and skb_add_rx_frag(xxx, *0*, ...) is not called. The loop following this code starts calling skb_add_rx_frag() starting with i=1 and thus frag[0] is never initialized. Since i is initialized to zero at the top of the primary loop, we can just reference and post-increment i instead of hardcoding the 0 when calling skb_add_rx_frag() the first time. Reported-by: Aashay Shringarpure <[email protected]> Reported-by: Yi Chou <[email protected]> Reported-by: Shervin Oloumi <[email protected]> Signed-off-by: Grant Grundler <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions