From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756758AbeEJH1Z (ORCPT ); Thu, 10 May 2018 03:27:25 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:44546 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756740AbeEJH1Y (ORCPT ); Thu, 10 May 2018 03:27:24 -0400 X-ME-Helo: ubuntu-CJ.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 10 May 2018 09:27:22 +0200 X-ME-IP: 86.244.116.1 From: Christophe JAILLET To: axboe@kernel.dk, ming.lei@redhat.com, martin.petersen@oracle.com, sagi@grimberg.me, chris.gekas@gmail.com, bart.vanassche@wdc.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] mtip32xx: Fix an error handling path in 'mtip_pci_probe()' Date: Thu, 10 May 2018 09:27:31 +0200 Message-Id: <20180510072731.19956-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Branch to the right label in the error handling path in order to keep it logical. Signed-off-by: Christophe JAILLET --- drivers/block/mtip32xx/mtip32xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 769c551e3d71..06257b872a7d 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -4273,7 +4273,7 @@ static int mtip_pci_probe(struct pci_dev *pdev, if (!dd->isr_workq) { dev_warn(&pdev->dev, "Can't create wq %d\n", dd->instance); rv = -ENOMEM; - goto block_initialize_err; + goto setmask_err; } memset(cpu_list, 0, sizeof(cpu_list)); -- 2.17.0