Skip to content

Commit

Permalink
mac80211: fix netdev rename
Browse files Browse the repository at this point in the history
Fix a copy bug introduced by

    commit 47846c9
    Author: Johannes Berg <johannes@sipsolutions.net>
    Date:   Wed Nov 25 17:46:19 2009 +0100

        mac80211: reduce reliance on netdev

This manifested itself only in debug messages
and in the debugfs rename failure that would
always happen due to trying to rename the dir
over itself.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Feb 15, 2010
1 parent f318d65 commit 2f5265e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ static int netdev_notify(struct notifier_block *nb,

sdata = IEEE80211_DEV_TO_SUB_IF(dev);

memcpy(sdata->name, sdata->name, IFNAMSIZ);
memcpy(sdata->name, dev->name, IFNAMSIZ);

ieee80211_debugfs_rename_netdev(sdata);
return 0;
Expand Down

0 comments on commit 2f5265e

Please sign in to comment.