Hi Alex, > 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@xxxxxxxxxxxxxx> > --- > I think for the current use case, we don't need any locking anyway, but when > we add support for runtime add/del phy's then we need it... so I let the lock > there. > > drivers/net/ieee802154/fakelb.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html