diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-11-09 15:19:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-09 19:31:13 +0300 |
commit | cfb76d77c009b38e607c8a2adc8bdd57b5081768 (patch) | |
tree | fac0cdc7ed28a437668efb79caef5161ff5535d7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 3870502a66fe26c80c034db1aa915d69850854aa (diff) | |
download | linux-cfb76d77c009b38e607c8a2adc8bdd57b5081768.tar.xz |
net: caif: check return value of alloc_netdev
I don't know if dev can actually be NULL here, but the test should be
above alloc_netdev(), to avoid leaking the struct net_device in case
dev is actually NULL. And of course the return value from alloc_netdev
should be tested.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions