diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-01-15 06:23:45 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-15 06:50:47 +0400 |
commit | 7f2b8562c2ee6e2a69c2715b9927f708f2f861dc (patch) | |
tree | 7c61f45f6098356d80cdf16ee751d471804350f8 /net/ipv4 | |
parent | 5af28de35342f630a91061e25cc976a01b7ca6c4 (diff) | |
download | linux-7f2b8562c2ee6e2a69c2715b9927f708f2f861dc.tar.xz |
net: nl80211: __dev_get_by_index instead of dev_get_by_index to find interface
As __cfg80211_rdev_from_attrs(), nl80211_dump_wiphy_parse() and
nl80211_set_wiphy() are all under rtnl_lock protection,
__dev_get_by_index() instead of dev_get_by_index() should be used
to find interface handler in them allowing us to avoid to change
interface reference counter.
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions