diff options
author | 2018-11-14 21:49:35 +0000 | |
---|---|---|
committer | 2019-01-07 16:38:26 +0100 | |
commit | 151f72f493f2605ebbed0198362eed05918ed839 (patch) | |
tree | 2816e7b09fc0d3517a41ce05a9d15e0472e36995 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | reset: Add reset_control_get_count() (diff) | |
download | wireguard-linux-151f72f493f2605ebbed0198362eed05918ed839.tar.xz wireguard-linux-151f72f493f2605ebbed0198362eed05918ed839.zip |
reset: fix null pointer dereference on dev by dev_name
The call to dev_name will dereference dev, however, dev is later
being null checked, so there is a possibility of a null pointer
dereference on dev by the call to dev_name. Fix this by null
checking dev first before the call to dev_name
Detected by CoverityScan, CID#1475475 ("Dereference before null check")
Fixes: 2a6cb2b1d83b ("reset: Add reset_control_get_count()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions