]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: mv88e6xxx: Initialise the mutex as soon as it is created
authorAndrew Lunn <andrew@lunn.ch>
Tue, 10 May 2016 21:27:19 +0000 (23:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:36:28 +0000 (19:36 -0400)
commitbf72944b09c3ce4e9f31ba00081596e136b80429
tree02599443e3787f677e18c469bdc36ea56f31975c
parent0f14bd35d29a22481940e92dbb60fa66fdbf0598
dsa: mv88e6xxx: Initialise the mutex as soon as it is created

By initialising immediately it, we don't run the danger of using it
before it is initialised.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c