diff options
author | 2021-05-24 12:25:24 +0300 | |
---|---|---|
committer | 2021-05-24 13:20:24 -0700 | |
commit | cec279a898a3b004411682f212215ccaea1cd0fb (patch) | |
tree | 5e77036d80e9699ee3dc7a267fb39f397aa276f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: dsa: sja1105: call dsa_unregister_switch when allocating memory fails (diff) | |
download | linux-dev-cec279a898a3b004411682f212215ccaea1cd0fb.tar.xz linux-dev-cec279a898a3b004411682f212215ccaea1cd0fb.zip |
net: dsa: sja1105: add error handling in sja1105_setup()
If any of sja1105_static_config_load(), sja1105_clocking_setup() or
sja1105_devlink_setup() fails, we can't just return in the middle of
sja1105_setup() or memory will leak. Add a cleanup path.
Fixes: 0a7bdbc23d8a ("net: dsa: sja1105: move devlink param code to sja1105_devlink.c")
Fixes: 8aa9ebccae87 ("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.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