Re: [PATCH 4/4] staging: most: net: hold used net device

2017-06-21 Thread Dan Carpenter
Ah. Thanks for the explanation. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 4/4] staging: most: net: hold used net device

2017-06-21 Thread Andrey Shvetsov
On Tue, Jun 20, 2017 at 10:56:43PM +0300, Dan Carpenter wrote: > On Tue, Jun 20, 2017 at 05:11:51PM +0200, Christian Gromm wrote: > > @@ -411,21 +428,31 @@ static int aim_rx_data(struct mbo *mbo) > > struct sk_buff *skb; > > struct net_device *dev; > > unsigned int skb_len; > > + int

Re: [PATCH 4/4] staging: most: net: hold used net device

2017-06-20 Thread Dan Carpenter
On Tue, Jun 20, 2017 at 05:11:51PM +0200, Christian Gromm wrote: > @@ -411,21 +428,31 @@ static int aim_rx_data(struct mbo *mbo) > struct sk_buff *skb; > struct net_device *dev; > unsigned int skb_len; > + int ret = 0; > > - nd = get_net_dev_context(mbo->ifp); > -

[PATCH 4/4] staging: most: net: hold used net device

2017-06-20 Thread Christian Gromm
From: Andrey Shvetsov This adds the dev_hold and dev_put calls to the functions aim_resume_tx_channel, aim_rx_data and on_netinfo to postpone the unregistration of the used net device. Signed-off-by: Andrey Shvetsov Signed-off-by: Christian Gromm