summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-11-16 20:21:39 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:04:06 +0100
commit42256f57d894a4e4aa5af42d04191d7a12f10df9 (patch)
tree3d6ee1bc7f75b02ff6a4c696dfa9c69b82a0521d /drivers/net/cxgb3
parent[netdrvr] checkpatch cleanups (diff)
downloadlinux-42256f57d894a4e4aa5af42d04191d7a12f10df9.tar.xz
linux-42256f57d894a4e4aa5af42d04191d7a12f10df9.zip
cxgb3 - fix MSI-X failure path
Return error code when msi-x settings fail. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 61ffc925eae7..bb0d1c841c0f 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -839,7 +839,8 @@ static int cxgb_up(struct adapter *adap)
if (err)
goto irq_err;
- if (request_msix_data_irqs(adap)) {
+ err = request_msix_data_irqs(adap);
+ if (err) {
free_irq(adap->msix_info[0].vec, adap);
goto irq_err;
}