]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: net: protect consistency of the state
authorAndrey Shvetsov <andrey.shvetsov@k2l.de>
Tue, 20 Jun 2017 15:11:50 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jun 2017 16:32:46 +0000 (00:32 +0800)
commit78a1d30ff8cc9765fbb6f15a2bc53b90c91daf9c
treef0595218827e117b4cc9c6cc3b00869d203753d4
parent5a0aceaa822a4901e8ba99c3d420be0e4c7de71e
staging: most: net: protect consistency of the state

This introduces the mutex that protects the consistency between the
tx.linked, rx.linked and the presence of the net divice.

Additionally, this patch optimizes the setup of the ch->linked in the
function aim_probe_channel.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-network/networking.c