fakelb: fix schedule while atomic
authorAlexander Aring <aar@pengutronix.de>
Thu, 1 Sep 2016 09:24:57 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commitbdca1fd9a6df745857e23c6056494b7fe062b4e6
tree208199f3d93f8033688dd731405aa2328c467497
parent8a0c9f49090fe8ae122fd1bbf7260c8492289386
fakelb: fix schedule while atomic

This patch changes the spinlock to mutex for the available fakelb phy
list. When holding the spinlock the ieee802154_unregister_hw is called
which holding the rtnl_mutex, in that case we get a "BUG: sleeping function
called from invalid context" error. We simple change the spinlock to
mutex which allows to hold the rtnl lock there.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/fakelb.c