depca: fix leaks in depca_module_init()
authorKulikov Vasiliy <segooon@gmail.com>
Mon, 12 Jul 2010 04:52:33 +0000 (04:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jul 2010 03:21:40 +0000 (20:21 -0700)
commit84c3b972f37a735dafc25c4c0d5fb98f99e1157a
tree0d0cee22f554ec4d402d67e5560ac1dcfaf284b4
parent9e34a5b51684bc90ac827ec4ba339f3892632eac
depca: fix leaks in depca_module_init()

Since some of xxx_register_driver() can return error we must unregister
already registered drivers.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/depca.c