Re: [PATCH] nl80211: fix dumpit error path RTNL deadlocks

2017-03-15 Thread Johannes Berg
On Wed, 2017-03-15 at 14:59 -0700, David Miller wrote: > From: Johannes Berg > Date: Wed, 15 Mar 2017 14:29:13 +0100 > > > From: Johannes Berg > >  > > Sowmini pointed out Dmitry's RTNL deadlock report to me, and it > turns out > > to be perfectly accurate - there are various error paths that mi

Re: [PATCH] nl80211: fix dumpit error path RTNL deadlocks

2017-03-15 Thread David Miller
From: Johannes Berg Date: Wed, 15 Mar 2017 14:29:13 +0100 > From: Johannes Berg > > Sowmini pointed out Dmitry's RTNL deadlock report to me, and it turns out > to be perfectly accurate - there are various error paths that miss unlock > of the RTNL. > > To fix those, change the locking a bit to

[PATCH] nl80211: fix dumpit error path RTNL deadlocks

2017-03-15 Thread Johannes Berg
From: Johannes Berg Sowmini pointed out Dmitry's RTNL deadlock report to me, and it turns out to be perfectly accurate - there are various error paths that miss unlock of the RTNL. To fix those, change the locking a bit to not be conditional in all those nl80211_prepare_*_dump() functions, but m