vlan: fail early when creating netdev named config
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 25 Jul 2014 22:25:10 +0000 (15:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jul 2014 18:43:50 +0000 (11:43 -0700)
commit9c5ff24f963919965155cf0c4a2323b22a0c5c84
tree8be53cca32ce634c291589f161684913f42432ac
parenta317a2f19da7d0af1f068cf4d3ae80cdd73643b7
vlan: fail early when creating netdev named config

Similarly, vlan will create  /proc/net/vlan/<dev>, so when we
create dev with name "config", it will confict with
/proc/net/vlan/config.

Reported-by: Stephane Chazelas <stephane.chazelas@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlanproc.c