cxgb3 - fix MSI-X failure path
authorDivy Le Ray <divy@chelsio.com>
Fri, 16 Nov 2007 19:21:39 +0000 (11:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:06 +0000 (15:04 -0800)
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>
drivers/net/cxgb3/cxgb3_main.c

index 61ffc925eae777b065c37dea73c9b938e49ccd8e..bb0d1c841c0f068832788cca36e73b83c03dec0a 100644 (file)
@@ -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;
                }