summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAriel Levkovich <lariel@nvidia.com>2020-09-28 19:34:10 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2020-09-30 21:26:31 -0700
commit5efbe617888a4ba29e260d1233afbd9524608805 (patch)
treedc4aafcc292f1ea2abf7e6b4ff2af78e80d35236 /tools/perf/scripts/python/exported-sql-viewer.py
parent7be3412a7686241042681b0a3e2fae5c9a01da0e (diff)
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 <dan.carpenter@oracle.com> Signed-off-by: Ariel Levkovich <lariel@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions