diff options
Diffstat (limited to 'drivers/net/nlmon.c')
| -rw-r--r-- | drivers/net/nlmon.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/drivers/net/nlmon.c b/drivers/net/nlmon.c index b91603835d26..4b22955de191 100644 --- a/drivers/net/nlmon.c +++ b/drivers/net/nlmon.c @@ -113,7 +113,7 @@ static void nlmon_setup(struct net_device *dev)  	dev->netdev_ops	= &nlmon_ops;  	dev->ethtool_ops = &nlmon_ethtool_ops; -	dev->destructor	= free_netdev; +	dev->needs_free_netdev = true;  	dev->features = NETIF_F_SG | NETIF_F_FRAGLIST |  			NETIF_F_HIGHDMA | NETIF_F_LLTX; @@ -127,7 +127,8 @@ static void nlmon_setup(struct net_device *dev)  	dev->min_mtu = sizeof(struct nlmsghdr);  } -static int nlmon_validate(struct nlattr *tb[], struct nlattr *data[]) +static int nlmon_validate(struct nlattr *tb[], struct nlattr *data[], +			  struct netlink_ext_ack *extack)  {  	if (tb[IFLA_ADDRESS])  		return -EINVAL; | 
