dnet: fixup error handling in initialization
authorDan Carpenter <error27@gmail.com>
Wed, 28 Jul 2010 22:27:29 +0000 (22:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jul 2010 06:27:58 +0000 (23:27 -0700)
commitde140b0d511ad86a5dd0888c9095ae030ada2e86
tree29a2fb4db71c3ffc9ad78a9ce8e3f67d5e572600
parentc5cb002fb0c82a0ccaef24e002ab370165b55be7
dnet: fixup error handling in initialization

There were two problems here.  We returned success if dnet_mii_init()
failed and there was a release_mem_region() missing.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dnet.c