summaryrefslogtreecommitdiff
path: root/net/batman-adv/bat_iv_ogm.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-03-15 16:26:04 +0300
committerJohannes Berg <johannes.berg@intel.com>2017-03-16 12:30:03 +0300
commitea90e0dc8cecba6359b481e24d9c37160f6f524f (patch)
treea02edfb1df611c5d5870150c4651c69ef1047375 /net/batman-adv/bat_iv_ogm.c
parent22a0e18eac7a9e986fec76c60fa4a2926d1291e2 (diff)
downloadlinux-ea90e0dc8cecba6359b481e24d9c37160f6f524f.tar.xz
nl80211: fix dumpit error path RTNL deadlocks
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 make those require the RTNL to start with, and fix the buggy error paths. This also let me use sparse (by appropriately overriding the rtnl_lock/rtnl_unlock functions) to validate the changes. Cc: stable@vger.kernel.org Reported-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
0 files changed, 0 insertions, 0 deletions