aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMenglong Dong <[email protected]>2022-05-13 11:03:36 +0800
committerDavid S. Miller <[email protected]>2022-05-16 10:47:43 +0100
commita3af33abd9210c93dc829b4fdd7a19f63f168a25 (patch)
tree7f4c61b9ab4241fd95cb616c8d95ad56632687ec /tools/perf/scripts/python/event_analyzing_sample.py
parent3aba103006bcc4a7472b7c9506b3bc065ffb7992 (diff)
net: dm: check the boundary of skb drop reasons
The 'reason' will be set to 'SKB_DROP_REASON_NOT_SPECIFIED' if it not small that SKB_DROP_REASON_MAX in net_dm_packet_trace_kfree_skb_hit(), but it can't avoid it to be 0, which is invalid and can cause NULL pointer in drop_reasons. Therefore, reset it to SKB_DROP_REASON_NOT_SPECIFIED when 'reason <= 0'. Reviewed-by: Jiang Biao <[email protected]> Reviewed-by: Hao Peng <[email protected]> Signed-off-by: Menglong Dong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions