Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72615
b: refs/heads/master
c: c8d90dc
h: refs/heads/master
i:
  72613: 18d9850
  72611: e5c9e9d
  72607: 7959737
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Oct 26, 2007
1 parent 29f995d commit ce39c97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c56a347c1dfbe384b1ffb65d8828faa36dbaea4
refs/heads/master: c8d90dca3211966ba5189e0f3d4bccd558d9ae08
3 changes: 3 additions & 0 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ int dev_change_name(struct net_device *dev, char *newname)
if (!dev_valid_name(newname))
return -EINVAL;

if (strncmp(newname, dev->name, IFNAMSIZ) == 0)
return 0;

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

if (strchr(newname, '%')) {
Expand Down

0 comments on commit ce39c97

Please sign in to comment.