diff options
author | Dan Carpenter <[email protected]> | 2012-06-05 20:31:29 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-06-07 13:15:09 -0700 |
commit | c3001b773bb63afd403bae37febf3f09826912cb (patch) | |
tree | 575e8c9f53d88ec6ad465f4b0d23fe67e76fa7dc /net/unix/sysctl_net_unix.c | |
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 <[email protected]>
Tested-by: Raffaele Recalcati <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions