From: Ying Xue Date: Wed, 15 Jan 2014 02:23:45 +0000 (+0800) Subject: net: nl80211: __dev_get_by_index instead of dev_get_by_index to find interface X-Git-Tag: v3.14-rc1~94^2~179^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f2b8562c2ee6e2a69c2715b9927f708f2f861dc;p=pandora-kernel.git 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 Signed-off-by: Ying Xue Signed-off-by: David S. Miller --- Reading git-diff-tree failed