diff options
| author | Ariel Levkovich <[email protected]> | 2020-09-28 16:34:10 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2020-10-01 04:26:31 +0000 |
| commit | 5efbe617888a4ba29e260d1233afbd9524608805 (patch) | |
| tree | dc4aafcc292f1ea2abf7e6b4ff2af78e80d35236 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | net/mlx5: Use dma device access helper (diff) | |
| download | kernel-5efbe617888a4ba29e260d1233afbd9524608805.tar.gz kernel-5efbe617888a4ba29e260d1233afbd9524608805.zip | |
net/mlx5: Fix dereference on pointer attr after null check
When removing a flow from the slow path fdb, a flow attr struct is
allocated for the rule removal process. If the allocation fails the
code prints a warning message but continues with the removal flow
which include dereferencing a pointer which could be null.
Fix this by exiting the function in case the attr allocation failed.
Fixes: c620b772152b ("net/mlx5: Refactor tc flow attributes structure")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Ariel Levkovich <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
