diff options
| author | Paolo Pisati <[email protected]> | 2021-06-28 14:54:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-28 23:14:38 +0000 |
| commit | a118ff661889ecee3ca90f8125bad8fb5bbc07d5 (patch) | |
| tree | 18db590479ca5f90a8e181b91ecd65e6cb66e526 /net/ipv4/tcp_bpf.c | |
| parent | net: phy: at803x: mask 1000 Base-X link mode (diff) | |
| download | kernel-a118ff661889ecee3ca90f8125bad8fb5bbc07d5.tar.gz kernel-a118ff661889ecee3ca90f8125bad8fb5bbc07d5.zip | |
selftests: net: devlink_port_split: check devlink returned an element before dereferencing it
And thus avoid a Python stacktrace:
~/linux/tools/testing/selftests/net$ ./devlink_port_split.py
Traceback (most recent call last):
File "/home/linux/tools/testing/selftests/net/./devlink_port_split.py",
line 277, in <module> main()
File "/home/linux/tools/testing/selftests/net/./devlink_port_split.py",
line 242, in main
dev = list(devs.keys())[0]
IndexError: list index out of range
Signed-off-by: Paolo Pisati <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_bpf.c')
0 files changed, 0 insertions, 0 deletions
