Re: [Patch net] hsr: switch ->dellink() to ->ndo_uninit()

2019-07-11 Thread David Miller
From: Cong Wang Date: Tue, 9 Jul 2019 23:24:54 -0700 > Switching from ->priv_destructor to dellink() has an unexpected > consequence: existing RCU readers, that is, hsr_port_get_hsr() > callers, may still be able to read the port list. > > Instead of checking the return value of each hsr_port_g

[Patch net] hsr: switch ->dellink() to ->ndo_uninit()

2019-07-09 Thread Cong Wang
Switching from ->priv_destructor to dellink() has an unexpected consequence: existing RCU readers, that is, hsr_port_get_hsr() callers, may still be able to read the port list. Instead of checking the return value of each hsr_port_get_hsr(), we can just move it to ->ndo_uninit() which is called af