Re: [PATCH net] net: ep93xx_eth: Do not crash unloading module

2016-12-06 Thread Florian Fainelli
On 12/05/2016 12:36 PM, David Miller wrote: > From: Florian Fainelli > Date: Sun, 4 Dec 2016 19:22:05 -0800 > >> When we unload the ep93xx_eth, whether we have opened the network >> interface or not, we will either hit a kernel paging request error, or a >> simple NULL pointer de-reference becau

Re: [PATCH net] net: ep93xx_eth: Do not crash unloading module

2016-12-05 Thread David Miller
From: Florian Fainelli Date: Sun, 4 Dec 2016 19:22:05 -0800 > When we unload the ep93xx_eth, whether we have opened the network > interface or not, we will either hit a kernel paging request error, or a > simple NULL pointer de-reference because: > > - if ep93xx_open has been called, we have cr

[PATCH net] net: ep93xx_eth: Do not crash unloading module

2016-12-04 Thread Florian Fainelli
When we unload the ep93xx_eth, whether we have opened the network interface or not, we will either hit a kernel paging request error, or a simple NULL pointer de-reference because: - if ep93xx_open has been called, we have created a valid DMA mapping for ep->descs, when we call ep93xx_stop, we a