aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2021-08-05 21:08:22 +0200
committerDavid S. Miller <[email protected]>2021-08-06 10:39:04 +0100
commit596690e9f4fc8f062a3f52b42071086721fd76fe (patch)
tree517fa8847d7ffd2d803fe3b11b8404d93661b78c /tools/perf/scripts/python
parent5c0418ed16109759c7aec86b72f9bf56a0358526 (diff)
ethtool: return error from ethnl_ops_begin if dev is NULL
Julian reported that after d43c65b05b84 Coverity complains about a missing check whether dev is NULL in ethnl_ops_complete(). There doesn't seem to be any valid case where dev could be NULL when calling ethnl_ops_begin(), therefore return an error if dev is NULL. Fixes: d43c65b05b84 ("ethtool: runtime-resume netdev parent in ethnl_ops_begin") Reported-by: Julian Wiedmann <[email protected]> Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions