be2net: cleanup in case of error in be_open()
authorSathya Perla <sathyap@serverengines.com>
Sun, 30 May 2010 23:33:45 +0000 (23:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2010 07:15:51 +0000 (00:15 -0700)
commit889cd4b2e529db4988525b0b3e6fb2c095760848
tree0fc20cbaa3da75b2ac11bfccf80943503aa5539c
parentdb6f30078dcb0117336f20275e4828c86132e46e
be2net: cleanup in case of error in be_open()

This patch adds cleanup code (things like unregistering irq,
disabling napi etc) to be_open() when an error occurs inside the
routine.

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c