aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-09-29 20:51:23 +0100
committerDavid S. Miller <[email protected]>2017-10-01 04:12:45 +0100
commit075cfdd659cb1e86f948f11ba577f27706f0756e (patch)
tree4429d7118de8d3454b5320ed5bc5a98bbbae475b /tools/perf/scripts/python/check-perf-trace.py
parent09af87d18f6ba05588e6316c47fdacf06e28cce8 (diff)
net: hns3: fix null pointer dereference before null check
pointer ndev is being dereferenced with the call to netif_running before it is being null checked. Re-order the code to only dereference ndev after it has been null checked. Detected by CoverityScan, CID#1457206 ("Dereference before null check") Fixes: 9df8f79a4d29 ("net: hns3: Add DCB support when interacting with network stack") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions