|
@@ -259,7 +259,7 @@ int snmp6_unregister_dev(struct inet6_dev *idev)
|
|
struct net *net = dev_net(idev->dev);
|
|
struct net *net = dev_net(idev->dev);
|
|
if (!net->mib.proc_net_devsnmp6)
|
|
if (!net->mib.proc_net_devsnmp6)
|
|
return -ENOENT;
|
|
return -ENOENT;
|
|
- if (!idev || !idev->stats.proc_dir_entry)
|
|
|
|
|
|
+ if (!idev->stats.proc_dir_entry)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
remove_proc_entry(idev->stats.proc_dir_entry->name,
|
|
remove_proc_entry(idev->stats.proc_dir_entry->name,
|
|
net->mib.proc_net_devsnmp6);
|
|
net->mib.proc_net_devsnmp6);
|