diff options
author | 2017-05-06 07:29:45 +0200 | |
---|---|---|
committer | 2017-05-08 14:58:36 -0400 | |
commit | 8ce7aaaa9797f944ad2f50e5160c8a20a473aedf (patch) | |
tree | ae6574bb9c4715131a3d0729c29c3be1e5c32fc6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bonding: check nla_put_be32 return value (diff) | |
download | wireguard-linux-8ce7aaaa9797f944ad2f50e5160c8a20a473aedf.tar.xz wireguard-linux-8ce7aaaa9797f944ad2f50e5160c8a20a473aedf.zip |
net: dsa: loop: Check for memory allocation failure
If 'devm_kzalloc' fails, a NULL pointer will be dereferenced.
Return -ENOMEM instead, as done for some other memory allocation just a
few lines above.
Fixes: 98cd1552ea27 ("net: dsa: Mock-up driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions