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>
Thu, 1 Sep 2016 16:34:26 +0000 (18:34 +0200)
commit4e9a68b81aeb26d745683c78a7cf1f79fdab2521
tree7a29875b2f037a63ea83a936d4ab644dc5bec864
parentc259c011c2963889e3e941247ea562bcc9188bc1
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
This page took 0.028138 seconds and 5 git commands to generate.