diff options
| author | Menglong Dong <[email protected]> | 2022-05-13 11:03:37 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-05-16 10:47:43 +0100 |
| commit | 20bbcd0a94c6686c2692e6f7081163c233d7ce40 (patch) | |
| tree | b86d8d7397c28d81f75992c97872be842ee3a092 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | a3af33abd9210c93dc829b4fdd7a19f63f168a25 (diff) | |
net: skb: check the boundrary of drop reason in kfree_skb_reason()
Sometimes, we may forget to reset skb drop reason to NOT_SPECIFIED after
we make it the return value of the functions with return type of enum
skb_drop_reason, such as tcp_inbound_md5_hash. Therefore, its value can
be SKB_NOT_DROPPED_YET(0), which is invalid for kfree_skb_reason().
So we check the range of drop reason in kfree_skb_reason() with
DEBUG_NET_WARN_ON_ONCE().
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/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions