diff options
author | Veaceslav Falico <[email protected]> | 2014-04-07 11:25:12 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-04-07 15:52:07 -0400 |
commit | 6859e7df6d9045a461412777e63bd8cef12f9705 (patch) | |
tree | 11e60459c57aa042d1d656ce3418614ca9de8863 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | 6f25cd47dcd2b9912c6e52aa833ba1614f7b5086 (diff) |
netdev: remove potentially harmful checks
Currently we're checking a variable for != NULL after actually
dereferencing it, in netdev_lower_get_next_private*().
It's counter-intuitive at best, and can lead to faulty usage (as it implies
that the variable can be NULL), so fix it by removing the useless checks.
Reported-by: Daniel Borkmann <[email protected]>
CC: "David S. Miller" <[email protected]>
CC: Eric Dumazet <[email protected]>
CC: Nicolas Dichtel <[email protected]>
CC: Jiri Pirko <[email protected]>
CC: stephen hemminger <[email protected]>
CC: Jerry Chu <[email protected]>
Signed-off-by: Veaceslav Falico <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions