Received: by 10.223.164.202 with SMTP id h10csp1496990wrb; Wed, 15 Nov 2017 22:16:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMYLaBxznWGpXbyiml6vYhL0cdx2zVg5z97uK163wTq5DnXWBLgq6L/MET351hYVDXXsjm/N X-Received: by 10.159.197.67 with SMTP id d3mr610416plo.409.1510813002977; Wed, 15 Nov 2017 22:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510813002; cv=none; d=google.com; s=arc-20160816; b=FKezXxzMkTWjv+gVhm3sGp87XcOwTyMnxkkouBSphjZlRwU80UhuZA7iznwkG4fa8d IiG3BvXyGEJvXMfU/G+XmlDTdjkR0pu1LQOq7hTMpeYsklwTuq+Y7+aEH+H8TntnW06j 8AVBywtnLkcO4W4QV9D0WXZeamoQrTeDonJKO67bebavSAPH8tgCtQsQCWjHrIYKn1bZ 6vyQ72UCWDNV1nAjsNay1xyS0d9dCCw7hT2AA3jVZp6wV1ly86jk1OQc6H8XRzocWzQU uAKYMKctOLHh+R99ko+4weERlqOFuFu19UQvwnZvM0YK+ZW+LZzifiuxBg99AKwaekFP ivtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=rFJkt4SkxzlTentuBGwPeu3HrPpBLGVubixF6z0NtUM=; b=Tk8koFG+iRsZyJBi2RrxklMEnRnJMFwOIXWavRf8TLJO4uwyP6sBzyEzTchoCAWiBs FrY5I8Op33zIgabxQfqrYy2knaieqfKDMCDSig47uxWJMkg81VNPFn1au74jB3ZUN2uo ZvV17bFp3bhyifVR5JRcJDK6EjhAch/h105a0PTPH8ejyd5w3QXWVZPRxah1yS+T8oCj d/GaZ3k/hQu7i3pqo/y7zGizwPcP4hbqnfGNfnZLaccOdevNB+DSyXfiGUy9tRqXpKDP dLCUm8R5bHyopFc2fo4rzXTJcetc1WChjScRvJDAzPm5FQDdJsZvFScpqio0f1MpZe6p GpjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cUgQSf/A; 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 bj7si316650plb.557.2017.11.15.22.16.25; Wed, 15 Nov 2017 22:16:42 -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=cUgQSf/A; 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 S1759035AbdKPEaI (ORCPT + 89 others); Wed, 15 Nov 2017 23:30:08 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:50991 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758697AbdKPE3I (ORCPT ); Wed, 15 Nov 2017 23:29:08 -0500 Received: by mail-pg0-f68.google.com with SMTP id u3so4543692pgn.7; Wed, 15 Nov 2017 20:29:08 -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:in-reply-to:references :in-reply-to:references; bh=rFJkt4SkxzlTentuBGwPeu3HrPpBLGVubixF6z0NtUM=; b=cUgQSf/AQvLFcYpvHVXv7jNPBRL3y1Z6W4TMMRaE7YIIucSVs7HSUsHHqhKdoquWB5 HXGr2UXLz0LvNDGlxP6Qq8Okym1XUzoUMMotlvceg4WlCsSC18BPb2UNTRIWqcWeOLyT WGiVSUfxTYlbn2ncnbwmywvHKfwOuEjBp9pyonhD/a+CC8YDOrYhaR0MjDQIhPmvINgO s52TSggpNQFey+YGjjB3FmcBcgGNlMTeHvTpfV84cOMyNdK3h38lGWmUL64f3CLQi9H9 S8Q3S8Q9w3JH/GYVafGyqsUMhnWUc2PLZtGyzt/Swu+xIcH0JR5r+E7ykZZAz2yRqM7o IOnw== 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:in-reply-to :references:in-reply-to:references; bh=rFJkt4SkxzlTentuBGwPeu3HrPpBLGVubixF6z0NtUM=; b=uBliaUXghRQImAnVRpohuH9wASrmIyxU5eYZtb6SSH0DtCSzkMrGi4okbiZqO21VLY /SOBHxslIfp9MTqKt1oE8ETAwyLMF3N+KaZ+BAwrUk6w97tJs5uVuLXVcC4j591xQmEj 5RGXhwyd+WJBIDoLn22X00a2cyXFpTbKMFCXgjlX6EeMSQCPZShVCzO0BBjVWBsIDjj4 pl1weVF6mMVrm+sPGxuJquRA9qS/sNoP3A0eRqkgu8H4Nc+Z92biq6fLR7WtmSjHv9et qx0PkuWkTBF9R0O/D6Zi/8jgO3Ef1j7MY4qNzJCHl3gnEtlAh5ahjtN8rD3SFjXy8+ya b/Cg== X-Gm-Message-State: AJaThX5gYKJ9SwoVFzmnhfRuzW1aPKO4Ogk0iOsRe352lntrMFRCGNqp 79GjFthJG8ZSgFdM7Ex4dSQ= X-Received: by 10.98.87.13 with SMTP id l13mr437140pfb.193.1510806547746; Wed, 15 Nov 2017 20:29:07 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id m69sm421965pfc.27.2017.11.15.20.29.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:07 -0800 (PST) From: Arvind Yadav To: isdn@linux-pingi.de, davem@davemloft.net, stephen@networkplumber.org, johannes.berg@intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 06/12] isdn: hisax: Fix pnp_irq's error checking for setup_hfcs Date: Thu, 16 Nov 2017 09:57:23 +0530 Message-Id: <1372461dd91a1471b52a55207a527ce6580396b2.1510805781.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pnp_irq() function returns -1 if an error occurs. pnp_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/isdn/hisax/hfcscard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/hfcscard.c b/drivers/isdn/hisax/hfcscard.c index 4672870..3cbde72 100644 --- a/drivers/isdn/hisax/hfcscard.c +++ b/drivers/isdn/hisax/hfcscard.c @@ -195,7 +195,7 @@ int setup_hfcs(struct IsdnCard *card) } card->para[1] = pnp_port_start(pnp_d, 0); card->para[0] = pnp_irq(pnp_d, 0); - if (!card->para[0] || !card->para[1]) { + if (card->para[0] == -1 || !card->para[1]) { printk(KERN_ERR "HFC PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1584262588501766877@xxx Thu Nov 16 22:15:41 +0000 2017 X-GM-THRID: 1584243258743681281 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread