linux/drivers/net/ethernet/mscc
Christophe JAILLET f87675b836 net: mscc: ocelot: Fix a resource leak in the error handling path of the probe function
In case of error after calling 'ocelot_init()', it must be undone by a
corresponding 'ocelot_deinit()' call, as already done in the remove
function.

Fixes: a556c76adc ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201213114838.126922-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-16 11:11:24 -08:00
..
Kconfig net: mscc: ocelot: rethink Kconfig dependencies again 2020-07-16 12:46:00 -07:00
Makefile net: mscc: ocelot: rename ocelot_ace.{c, h} to ocelot_vcap.{c,h} 2020-06-20 17:25:23 -07:00
ocelot_flower.c net: mscc: ocelot: offload VLAN mangle action to VCAP IS1 2020-10-11 11:19:04 -07:00
ocelot_io.c net: mscc: ocelot: introduce a new ocelot_target_{read,write} API 2020-09-29 18:26:12 -07:00
ocelot_net.c net: mscc: ocelot: install MAC addresses in .ndo_set_rx_mode from process context 2020-12-14 19:28:22 -08:00
ocelot_police.c net: mscc: ocelot: move net_device related functions to ocelot_net.c 2020-06-20 17:25:23 -07:00
ocelot_police.h net: mscc: ocelot: unexpose ocelot_vcap_policer_{add,del} 2020-06-20 17:25:23 -07:00
ocelot_ptp.c net: mscc: ocelot: make ocelot_init_timestamp take a const struct ptp_clock_info 2020-09-18 17:52:40 -07:00
ocelot_qs.h
ocelot_rew.h
ocelot_vcap.c net: mscc: ocelot: relax ocelot_exclusive_mac_etype_filter_rules() 2020-10-02 15:40:30 -07:00
ocelot_vcap.h net: mscc: ocelot: offload egress VLAN rewriting to VCAP ES0 2020-10-02 15:40:30 -07:00
ocelot_vsc7514.c net: mscc: ocelot: Fix a resource leak in the error handling path of the probe function 2020-12-16 11:11:24 -08:00
ocelot.c net: mscc: ocelot: install MAC addresses in .ndo_set_rx_mode from process context 2020-12-14 19:28:22 -08:00
ocelot.h net: mscc: ocelot: support L2 multicast entries 2020-10-30 18:25:56 -07:00