Received: by 10.223.164.202 with SMTP id h10csp1487331wrb; Wed, 15 Nov 2017 22:04:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMaSPaADkg4OZOFYujt6cu8gc6SAXFjOPUj+72wh17DzlmfScUndJqFK/bjTV0f9nQy/AWQr X-Received: by 10.98.100.71 with SMTP id y68mr676162pfb.178.1510812242903; Wed, 15 Nov 2017 22:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510812242; cv=none; d=google.com; s=arc-20160816; b=qgeezfFfLqK5lIVrfrdEttEbEP9TByywexg/sIWmLUNFx2vkIeTLlvcFQ6aisVFQiK ngWYS/4dPl9Ju94KIevHlXpGEqLh4iHUiVWsL87J/OaiRQRg16+cLt7f7Vx1c15jcZGt NoHqSMMHLr2uEvJBc0AVanzCpgsoj+0Q7xfnXA5Jrk5uNuAJwqNZOLg0fseBIRMTJThM e6Vi3wmZ1PNjUnImdKQauGRHt9TSApvGAnqYbyJzpZ5zYgi62+r92rgdbQF1KuYd+oKW wKh3Lj4XG0AHTgDEuAmf1jduyF+5oReYCncftIY/rQKV8YGraaCJ+ccfrPeXfrFd6d3V EYKA== 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=mKIkFPAH8dfhxT2PuwoyNQrOAlcHd3smE1fgNj2pOms=; b=Ev2IrQzV0fv0TOstU8FcPzubMDikDH5qAtck0wpLIlHZ4O5lw7/MMOdqewfXgoQIfK yNGdWvKmKXpnTrRz5BDPVPaOCAyQnwB4tFFMU3GvdhWW+QsfIxKMSSOKWnPsPuPixI9u aOPvcnpkQezXp2E8mTXm7//rI+Gs3lESJwga1TlUC1coEb5R0p4fo8Vpg5e7xBuTHE+W MGW6jCcTUX64WCatuK/RVb+NeTIESy+skJEdJO5W08yB+m8Vr8eohgyqf6VyDp+IWeMb ZAcj3QdTbe1XJR51bFMaweclGSvt7gdUAGRQWAEa+PJIUwN//xVJ26rsDKatCI3wCMlS Ck/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ENgqzvx4; 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 g185si298426pgc.672.2017.11.15.22.03.50; Wed, 15 Nov 2017 22:04:02 -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=ENgqzvx4; 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 S932726AbdKPE3a (ORCPT + 89 others); Wed, 15 Nov 2017 23:29:30 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:55866 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758656AbdKPE3A (ORCPT ); Wed, 15 Nov 2017 23:29:00 -0500 Received: by mail-pf0-f195.google.com with SMTP id 17so18694686pfn.12; Wed, 15 Nov 2017 20:29:00 -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=mKIkFPAH8dfhxT2PuwoyNQrOAlcHd3smE1fgNj2pOms=; b=ENgqzvx4jtuvVW0DUwTxZtwr0x6tI44F0BgWSdoNNuvDCMc8bgR0UNeMsA5PMjpBj6 p/HCrNcqf7gi7kdDJxae8l7jpmK6mn8QhR7d0UMg7wZVnQH4GKVhKITqXVBIi+0n3dEx A12EULl7cXazFkUSSm73CQ9cqwtqPI35+36jlZGKzL7jHerh2U9XTryz/88EubkAz9cj pqNJTBVMvAt5Lurtn+8oT72ICEF9CHo3HIcFxzl95tRhFc0yCUvCkMbdgD3tpFCSoM5v MeCRJcmiYU6bN+KFMYQnb4S2oQWdSsyDSkiMo6jNh1GDyq+XBSQATw54/JYKg6d3JpGS nFAw== 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=mKIkFPAH8dfhxT2PuwoyNQrOAlcHd3smE1fgNj2pOms=; b=WioI4oOpN28AP10tszhBKurIwq3EAkp60Gweh6ONdQr3vTgQfAvjBh+By9uYWX71Ia nQzUqM4AtH+dOV8PBUVnGZc8ymSlzkaNBMZD317xTRWLE0E3GETQ+i1CBvsHfX3iSAVO y1Chtq0HNpkQkHlpnNuslx3atxPmvLQJKXlZkYrkOHO4kuGEpSKO3T4rBOzRglaUXUcI cfBItCvqC3PSlRnkQQHL5hO3m4GlwlvPGhShERk3CWws1Wln2iWBAgzaF8zsJ7GMPefR btn51OJHy6jpwo/ma9rlNbTH58Ws1TslneLyP8VveZ/v620hqAKPzZA9OtPWOY1RuxHa RqkA== X-Gm-Message-State: AJaThX4ywwQ1xz7av+bexpTB40jg4ZQahQWtUHqRR9aJZDfI5S7ksTMe V5TAoEDKuHLPBvNVrHUxLk8= X-Received: by 10.99.159.25 with SMTP id g25mr420925pge.176.1510806539748; Wed, 15 Nov 2017 20:28:59 -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.28.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:28:59 -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 03/12] isdn: hisax: Fix pnp_irq's error checking for setup_diva_isapnp Date: Thu, 16 Nov 2017 09:57:20 +0530 Message-Id: <6e647b3996ac5e67c40f52c3ce2c55d8b044f44e.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/diva.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/diva.c b/drivers/isdn/hisax/diva.c index 3fc94e7..bed749c 100644 --- a/drivers/isdn/hisax/diva.c +++ b/drivers/isdn/hisax/diva.c @@ -1094,7 +1094,7 @@ static int setup_diva_isapnp(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 "Diva PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1584360728827224247@xxx Sat Nov 18 00:15:35 +0000 2017 X-GM-THRID: 1584360728827224247 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread