commit | c3001b773bb63afd403bae37febf3f09826912cb | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jun 05 20:31:29 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 07 13:15:09 2012 -0700 |
tree | 575e8c9f53d88ec6ad465f4b0d23fe67e76fa7dc | |
parent | 69927fccd96b15bd228bb82d356a7a2a0cfaeefb [diff] |
net/ethernet: ks8851_mll unregister_netdev() before freeing We added another error condition here, but if we were to hit it then we need to unregister_netdev() before doing the free_netdev(). Otherwise we would hit the BUG_ON() in free_netdev(): BUG_ON(dev->reg_state != NETREG_UNREGISTERED); Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Tested-by: Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by: David S. Miller <davem@davemloft.net>