From: Divy Le Ray Date: Fri, 16 Nov 2007 19:21:39 +0000 (-0800) Subject: cxgb3 - fix MSI-X failure path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42256f57d894a4e4aa5af42d04191d7a12f10df9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cxgb3 - fix MSI-X failure path Return error code when msi-x settings fail. Signed-off-by: Divy Le Ray Signed-off-by: Jeff Garzik --- 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; }