Message ID | 1289283336.2790.76.camel@edumazet-laptop |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 072652d..820d9ed 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1799,6 +1799,7 @@ extern void netdev_run_todo(void); */ static inline void dev_put(struct net_device *dev) { + WARN_ON(dev->reg_state == NETREG_UNREGISTERED); irqsafe_cpu_dec(*dev->pcpu_refcnt); }