Re: [PATCH net] net: dsa: Keep a reference count on ethernet_dev

2017-01-24 Thread Florian Fainelli
On 01/24/2017 09:39 AM, David Miller wrote: > From: Florian Fainelli > Date: Sat, 21 Jan 2017 09:40:54 -0800 > >> of_find_net_device_by_node() just returns a reference to a net_device but >> does >> not increment its reference count, which means that the master network device >> can just vanish

Re: [PATCH net] net: dsa: Keep a reference count on ethernet_dev

2017-01-24 Thread Florian Fainelli
On 01/24/2017 09:39 AM, David Miller wrote: > From: Florian Fainelli > Date: Sat, 21 Jan 2017 09:40:54 -0800 > >> of_find_net_device_by_node() just returns a reference to a net_device but >> does >> not increment its reference count, which means that the master network device >> can just vanish

Re: [PATCH net] net: dsa: Keep a reference count on ethernet_dev

2017-01-24 Thread David Miller
From: Florian Fainelli Date: Sat, 21 Jan 2017 09:40:54 -0800 > of_find_net_device_by_node() just returns a reference to a net_device but does > not increment its reference count, which means that the master network device > can just vanish under our feet. > > Fixes: 83c0afaec7b7 ("net: dsa: Add