Received: by 10.223.164.202 with SMTP id h10csp240946wrb; Tue, 14 Nov 2017 00:14:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMauDdetJwjcJhj3OM68M4QnoOx8MuwQcMYym03yKR+N2OyW320TaGXh3YpS0yVwNrUTQzJG X-Received: by 10.99.101.133 with SMTP id z127mr11308030pgb.139.1510647291900; Tue, 14 Nov 2017 00:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510647291; cv=none; d=google.com; s=arc-20160816; b=yz1s/477dVODeDN7yQJGzfU9WzMwvw83Tt70SpDi7oSiKQ2jjboj1zNVJhmTPyv05o jPrPthlGnSjlRrcoqd24IK6IsVcfIe+sHVN9YlY91mOpLBMhDJ4+166rglBvYarBDrEC ERCZKY0Td1mf3a8RXy+/dq70vuJIl361qxMkK4NuMpC8sUdNQR4ya7TqU73k1rqmsvyq Xb4UOYH38CkhZdBeETmGLAxxyg04Ft5nQaXz8zRetHyY8CN3SIcn7uyze76j/OtHMeC4 Ow7/kNL0yq9+ibgCqjpp/8YnIhmPrJexZUbLtA+xK+uKAuroEXV04mg3CCRKMbhGmWKq mU3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=hmRiYkhzCQroiacsjTxRMLSY50LT6/T1F/IKj0uhWoc=; b=QZkL7tMyNvAEMLbLhH101oGbK7KNfIWhyb4426LfgJrDIIAJsiCG4Z3T7iExhq6Rfc 9jLGmbHZkQpK6RzAaXl21sOySy4AnwDMHZhrw97mKgqMaJzKtitLsqpWZIMQFd4cv+0/ k7+xYN3yPgHuYI+WXzNbREtgQs1oyNZUWzCl1ReckmxMq0Xxkrpmp6sjLUJmfyAbFdo2 rzNoLAXFWSbOizUWhB95GBOuvUZt1gt7dxnEvDQC71MvIfkgh+mjrmUfmWErQX84JAq9 z3EmeL+rQkt5ccU2HBevzksL/9TAMdRVN54j2xn8w+HUcmamr6s9MUW3IfSzSveDV5WE uitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pye7Nllf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h71si14888174pgc.321.2017.11.14.00.14.39; Tue, 14 Nov 2017 00:14:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pye7Nllf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752970AbdKNINq (ORCPT + 89 others); Tue, 14 Nov 2017 03:13:46 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:53916 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466AbdKNINj (ORCPT ); Tue, 14 Nov 2017 03:13:39 -0500 Received: by mail-pf0-f193.google.com with SMTP id b6so13620425pff.10; Tue, 14 Nov 2017 00:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=hmRiYkhzCQroiacsjTxRMLSY50LT6/T1F/IKj0uhWoc=; b=Pye7NllftMN3gh6oxlzmgoj0oCmr6N7lfk8boELnqTrtkzvnA5PH/XHSNZ5JMV3nYP MIjIkiTdS8ZbkBagwkkMfM4l1FMGa4cxpyGegfCud10jMBaI/dlP0Nwwxl8R2DCNnX/l 1osFtzM70IRy6eKooad7lmz/Dh2FU7IE85jKEFV3S1sbkv34KE2rP+26bJ9A5tHDhwIK zWcHqLliUrXcYFpQMeGvcwdB4RXQWFdAlkGdFPYU5rZ9R5AMX1Mc5/Qz+AmHzZBQi8nO JgJfmVv+y/ar9VrAaP1pMh6Jmpl89d/6p0rFxinAZGEB5pe8kjrMf1C7m1GFwOa2W6OX MOrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hmRiYkhzCQroiacsjTxRMLSY50LT6/T1F/IKj0uhWoc=; b=l3BX7H1FrxXVSXJkxFHnZfqHV1Z5egPRN5bH6PSYHMxNgIOH6eubSE2l8vTRQopcv+ NRPdoJyEp9FaJP9nDDGwnisaz06XJbrsRs7OGWcdah/Sw1yn4rBRbjDhKUd1fbH3QIon zqOOwrBKUbDAV2A7hKN52H7HiDQ7knOCFPoPuYEfHtuSECD1C9mDU9AFcU+fu4/8MsLY pjZ608r7AscFwRQ6TpzxrfdndanWRmmRTdFdDCNwvbEQShLuesXYzq+shSnYsd/3muRk 9w7bXPigD89ETHmP42HGu/F1ZP1NnQrZ0BSBWmGwaPzFKPnEK0cS+FLBBAQjPiC7SHN9 attg== X-Gm-Message-State: AJaThX7GIFw+sRQhiYx6VM0QFdGWl+Yw6TLDsQnnsOON63YRUO2/RwXR wU3KlSGjaiuVoReZc9midZs= X-Received: by 10.101.72.1 with SMTP id h1mr11485910pgs.249.1510647218464; Tue, 14 Nov 2017 00:13:38 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id 125sm35144188pff.14.2017.11.14.00.13.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Nov 2017 00:13:34 -0800 (PST) From: Arvind Yadav To: 3chas3@gmail.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org Subject: [PATCH] atm: horizon: Fix irq release error Date: Tue, 14 Nov 2017 13:42:38 +0530 Message-Id: <5fc117e8337d03c5bb964de50d000a9ca710c304.1510646818.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org atm_dev_register() can fail here and passed parameters to free irq which is not initialised. Initialization of 'dev->irq' happened after the 'goto out_free_irq'. So using 'irq' insted of 'dev->irq' in free_irq(). Signed-off-by: Arvind Yadav --- drivers/atm/horizon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 7e76b35..e121b84 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c @@ -2803,7 +2803,7 @@ static int hrz_probe(struct pci_dev *pci_dev, return err; out_free_irq: - free_irq(dev->irq, dev); + free_irq(irq, dev); out_free: kfree(dev); out_release: -- 1.9.1 From 1584801986164040281@xxx Wed Nov 22 21:09:10 +0000 2017 X-GM-THRID: 1584801986164040281 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread