pch_gbe: fix error handling in pch_gbe_up()
authorVeaceslav Falico <vfalico@redhat.com>
Tue, 23 Oct 2012 04:54:34 +0000 (04:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Oct 2012 03:04:31 +0000 (23:04 -0400)
commita2fc66ce9f4669daeebc03d6891917b894c752a8
tree3f362f7dff5c7af02776c1b829520c4e84e43d9a
parent37561f68bd527ec39076e32effdc7b1dcdfb17ea
pch_gbe: fix error handling in pch_gbe_up()

If we fail to allocate rx buffers pool by any reason, we'll just return
with an error, however we've previously successfully requested an irq. Fix
this by releasing the irq before returning the error.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c