aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-11-09 13:19:10 +0100
committerDavid S. Miller <davem@davemloft.net>2015-11-09 11:31:13 -0500
commitcfb76d77c009b38e607c8a2adc8bdd57b5081768 (patch)
treefac0cdc7ed28a437668efb79caef5161ff5535d7 /tools/perf/scripts/python/export-to-postgresql.py
parentnet: hisilicon: NET_VENDOR_HISILICON should depend on HAS_DMA (diff)
downloadwireguard-linux-cfb76d77c009b38e607c8a2adc8bdd57b5081768.tar.xz
wireguard-linux-cfb76d77c009b38e607c8a2adc8bdd57b5081768.zip
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 '')
0 files changed, 0 insertions, 0 deletions