ucc_geth: fix module removal
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 1 Feb 2008 13:22:48 +0000 (16:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:25:58 +0000 (04:25 -0800)
- uccf should be set to NULL to not double-free memory on
  subsequent calls;
- ind_hash_q and group_hash_q lists should be initialized in the
  probe() function, instead of struct_init() (called by open()),
  otherwise there will be an oops if ucc_geth_driver removed
  prior 'ifconfig ethX up';
- add unregister_netdev();
- reorder geth_remove() steps.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found