]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: use __cfg80211_rdev_from_attrs for testmode
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jun 2012 12:23:16 +0000 (14:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 08:57:03 +0000 (10:57 +0200)
commit3c1515b93c0f57b91b8bf612871553f5e967bd56
tree5c21d882b27059aef8db432bb92c83c02c23113e
parentab98355b2a803864d51d42baabae14b2282df865
nl80211: use __cfg80211_rdev_from_attrs for testmode

To fix the testmode cross-namespace access problem,
use __cfg80211_rdev_from_attrs() to get the device
instead of open-coding similar functionality.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c