Re: [PATCH net] net: Fix null de-reference of device refcount

2019-09-12 Thread David Miller
From: Subash Abhinov Kasiviswanathan Date: Tue, 10 Sep 2019 14:02:57 -0600 > In event of failure during register_netdevice, free_netdev is > invoked immediately. free_netdev assumes that all the netdevice > refcounts have been dropped prior to it being called and as a > result frees and clears ou

[PATCH net] net: Fix null de-reference of device refcount

2019-09-10 Thread Subash Abhinov Kasiviswanathan
In event of failure during register_netdevice, free_netdev is invoked immediately. free_netdev assumes that all the netdevice refcounts have been dropped prior to it being called and as a result frees and clears out the refcount pointer. However, this is not necessarily true as some of the operati