alistair23-linux/net/hsr
Cong Wang 619afef01f hsr: fix a memory leak in hsr_del_port()
hsr_del_port() should release all the resources allocated
in hsr_add_port().

As a consequence of this change, hsr_for_each_port() is no
longer safe to work with hsr_del_port(), switch to
list_for_each_entry_safe() as we always hold RTNL lock.

Cc: Arvid Brodin <arvid.brodin@alten.se>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-05 15:22:27 -07:00
..
hsr_debugfs.c net: hsr: fix debugfs path to support multiple interfaces 2019-04-15 17:22:02 -07:00
hsr_device.c hsr: fix a memory leak in hsr_del_port() 2019-07-05 15:22:27 -07:00
hsr_device.h net: hsr: convert to SPDX identifier 2019-04-06 18:32:21 -07:00
hsr_forward.c net: hsr: add tx stats for master interface 2019-04-15 17:22:02 -07:00
hsr_forward.h net: hsr: convert to SPDX identifier 2019-04-06 18:32:21 -07:00
hsr_framereg.c hsr: fix don't prune the master node from the node_db 2019-05-23 09:29:44 -07:00
hsr_framereg.h net: hsr: add debugfs support for display node list 2019-04-06 18:32:21 -07:00
hsr_main.c net: hsr: convert to SPDX identifier 2019-04-06 18:32:21 -07:00
hsr_main.h net: hsr: fix debugfs path to support multiple interfaces 2019-04-15 17:22:02 -07:00
hsr_netlink.c genetlink: optionally validate strictly/dumps 2019-04-27 17:07:22 -04:00
hsr_netlink.h net: hsr: convert to SPDX identifier 2019-04-06 18:32:21 -07:00
hsr_slave.c hsr: fix a memory leak in hsr_del_port() 2019-07-05 15:22:27 -07:00
hsr_slave.h net: hsr: convert to SPDX identifier 2019-04-06 18:32:21 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00