Re: [PATCH 11/13] staging: most: net: fix race between create/destroy device

2017-05-15 Thread Greg KH
On Fri, May 12, 2017 at 12:59:59PM +0200, Christian Gromm wrote: > From: Andrey Shvetsov > > This introduces the kref for the net_dev_context to prevent the > destruction of the network devices that are in use. > > Each get_net_dev_context is completed with the put_net_dev_context, > except the

[PATCH 11/13] staging: most: net: fix race between create/destroy device

2017-05-12 Thread Christian Gromm
From: Andrey Shvetsov This introduces the kref for the net_dev_context to prevent the destruction of the network devices that are in use. Each get_net_dev_context is completed with the put_net_dev_context, except the function aim_probe_channel that calls one more get_net_dev_context or kref_get