]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: most: fix race condition in AIM networking
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 28 Sep 2015 15:18:32 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:18:49 +0000 (03:18 +0200)
commit25ef42f3084df7b7511f1a9f72678a95d444f579
treec59bae737aaa8438aed6d6281858601200b25ede
parentbf358040c448af3fc6446bcf0d998d2fd420a7fc
staging: most: fix race condition in AIM networking

If the network device is being opened right after it has been registered
via function register_netdev(), the device state is not yet consistent in
the context of function ndo_open(). This patch cares about having the
initialization done right, before the networking device is registered.

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