]> 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)
commit00ea89e023fc2152054e09b95381298740651905
tree3f362f7dff5c7af02776c1b829520c4e84e43d9a
parent886a41c07a13fe08c687c5c9774813405376eaba
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