diff options
author | 2017-10-18 17:40:19 +0200 | |
---|---|---|
committer | 2017-10-20 13:11:04 +0100 | |
commit | 857d8ee2608831197d9838c8331b87848d05da33 (patch) | |
tree | 5e1909075933c8cb2975121e66e1e81254dbc61d /drivers/net/tun.c | |
parent | s390/qeth: clean up initial MTU determination (diff) | |
download | wireguard-linux-857d8ee2608831197d9838c8331b87848d05da33.tar.xz wireguard-linux-857d8ee2608831197d9838c8331b87848d05da33.zip |
s390/qeth: don't verify device when setting MAC address
There's no reason why l2_set_mac_address() should ever be called for
a netdevice that's not owned by qeth. It's certainly not required for
VLAN devices, which have their own netdev_ops.
Also:
1) we don't do such validation for any of the other netdev_ops routines.
2) the code in question clearly has never been actually exercised;
it's broken. After determining that the device is not owned
by qeth, it would still use dev->ml_priv to write a qeth trace entry.
Remove the check, and its helper that walked the global card list.
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions