Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2290862pxb; Mon, 11 Jan 2021 06:11:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxqSy4W37i0/cHBBfq5mgnM9Yb1+PDPUd9Jqgjy6GbNg3hz9BN90nhwbt8RSeU0Yrm7HbA X-Received: by 2002:a50:fd18:: with SMTP id i24mr14715994eds.146.1610374265756; Mon, 11 Jan 2021 06:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610374265; cv=none; d=google.com; s=arc-20160816; b=PSL6jxmjUohw2nwV0wt+x4NlOuiPtDKpTColWcsXTTg+2iV5MR2YAy6GUvXj3FPgh4 2Wc3iYc5qu86tL6Hv0MtzRIMoY8TrRSyxJmeAxKdQqUiwX8aJJ4DfQ6iPa2x4Q+gXSXW 3FHTxZTsR/kuEz6YuoVaUJzFPyluD6+rK6RinTsS6qMy8wBR9yuP5i42bomKuoNtY4iW g5NXyyHMbV22pcgQV+M/Ml6lzVRUknGKlMx+EFDl3GILTmEx2sNWCWi6PILdPt3GYcQD OJjmAMvGA8i3Lhfe/v2I9Ks4pm1OSWNJFf6jx1sppUROPzj3jfHowSqnyJak0VklpRI7 C+QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GUV4k7tdz61s6lfAETRSd/CKj6BBkmFQlTAhxoNpta4=; b=wB3xkljoHCE2TahUhkaTqndEkNR1YjvhIA3bcFb4CH9aPA0cSNU80atS76c8SMmaDL 7+JQwV6iMiKpANMbxfNFDT0gl7ujLEqtEp++TLCIiPy0DpDJW8G01ex2sEDllwvELejk gTCpSbqOxXQDnz/Rnp3/mR44Xih4Q+wQ/YOotU8xZ7qBwLnzIsdB6gZgbW+ElbGcjULg 9fAvF9d2gI77tevawq0j4tmTLzWETWd/MdRO51nh1t1LVsMSh6fYK/m0tyq8JMsMvrPA TS3cEDZaLo/5oWDnVxyazJ/AQcKuAPznFQlf3XupYeJx+Xd41EEAKDz1f/SagGNaqeis 8czg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vdu+LJQI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si7158004edy.244.2021.01.11.06.10.40; Mon, 11 Jan 2021 06:11:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vdu+LJQI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388243AbhAKOIm (ORCPT + 99 others); Mon, 11 Jan 2021 09:08:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:50254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729904AbhAKNDf (ORCPT ); Mon, 11 Jan 2021 08:03:35 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D59B22D08; Mon, 11 Jan 2021 13:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370192; bh=/baKpyauMrwoRkDSxTcryXp5Jvs4bjqPSZqSOJHSRxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vdu+LJQI/EdNQVb1oz/G+jq/xuOBX2RITv1ngz4uSiu+EI0hdPR8eTo3VxfwWBb+A 5XGbXJXk1c77HMqRXKrDOf8g692mq32wPWfevXfsCWHXfHu4g8ionqDhljWofEpblY iZcbRs7RSexgZ+TucnX+KofsYAagJqmYkdWD4BII= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Jakub Kicinski Subject: [PATCH 4.9 06/45] atm: idt77252: call pci_disable_device() on error path Date: Mon, 11 Jan 2021 14:00:44 +0100 Message-Id: <20210111130033.984053236@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130033.676306636@linuxfoundation.org> References: <20210111130033.676306636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 8df66af5c1e5f80562fe728db5ec069b21810144 ] This error path needs to disable the pci device before returning. Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/X93dmC4NX0vbTpGp@mwanda Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/atm/idt77252.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -3615,7 +3615,7 @@ static int idt77252_init_one(struct pci_ if ((err = dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(32)))) { printk("idt77252: can't enable DMA for PCI device at %s\n", pci_name(pcidev)); - return err; + goto err_out_disable_pdev; } card = kzalloc(sizeof(struct idt77252_dev), GFP_KERNEL);