]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1504790fb7ce8de7b588683078dd021a0af9454
tree3f362f7dff5c7af02776c1b829520c4e84e43d9a
parentf63aa699049caa9a17ccc2392d4f4fc68e791095
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