wireless: Add missing locking to cfg80211_dev_rename
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 8 May 2008 21:30:18 +0000 (14:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 May 2008 20:29:49 +0000 (16:29 -0400)
commit2940bb69fd84047e78fdb1868a8b894df5584255
tree332a12ee08d6b7e974c545041a9e1aaf7dfba80d
parent601ae7f25aea58f208a7f640f6174aac0652403a
wireless: Add missing locking to cfg80211_dev_rename

device_rename only performs useful and race free validity
checking at the optional sysfs level so depending on it
for all of the validity checking in cfg80211_dev_rename
is racy.

Instead implement all of the needed validity checking
and locking in cfg80211_dev_rename.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c