Received: by 10.223.164.202 with SMTP id h10csp1497660wrb; Wed, 15 Nov 2017 22:17:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMacE9XDypcZGIigxW4vLYneEMAud6k45x+awmlLAR7qzrR2Bu9KDLvXN+IwUX4yEUV6tOgS X-Received: by 10.101.78.18 with SMTP id r18mr621741pgt.289.1510813047483; Wed, 15 Nov 2017 22:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510813047; cv=none; d=google.com; s=arc-20160816; b=UUtEqQco1sxsjefS0NOHoxwFWKo2kItUvuYnOZHg/vQ0Yrfb9nRFNRK8d9vlLDMOKC s8M1TxuEm1CW59mCyw8c1ful9P4LLi0oizyVjK4caZivGVzZqo16c6sIU3T0RKm4Y88t +P6V1QF+4lJJVsZVW/2Vp0j1XtXdXO+VvNR104HFer0RwET/+GRHkuHwEKY6MgJx+ct8 AZJlaj3NDmc6hUbIAKOc7gz25dN8HAY1HdWJfCLmkiBNfkNLRJhrq1zntuHj64YrypiG UkLCD7Ul3bo47uerXeu2bWo8Zhjw9aKlv4FZPeBh3qB/gkUQIuGCx5mEn84POdOpB7kZ R0Wg== 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=gIGE11Ld59ADzdaCyZhx5QBSlxIZw3CigOf8BfbvA4Y=; b=fQskLEyIAvBFt6MZjoOwfZOT32lqCi2IV1omPOYUg2pGlj3/m+pZrRMjMgratSayDX wPdMmatFDTQdY8KVm7ZJ/73Qap0mWbLhIhZw//C2sk6MUwmEQqIhYPL8LTfRs3s/hCox zPvLomz/o1tIPjxa6eTrU2/BYbxBC9/1JJL7zGWpbH0eeZDd0Q/x84AYFgbDkz5DIXtC QL5nSnhF63s65ZuoW647zE5j/yJ8CD9vTh56meKSQu2aV+6+EReM0YuG1KZZlxS9WSJf plYAYch2XNY1rt3MZxNgNpq/T5H2nZVtqs6lSG5mS27qQ1P5AHo5a1OQvTXJspG7+fx/ rGeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ogPSQ0Ew; 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 f126si358474pfg.228.2017.11.15.22.17.15; Wed, 15 Nov 2017 22:17:27 -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=ogPSQ0Ew; 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 S1759194AbdKPEav (ORCPT + 89 others); Wed, 15 Nov 2017 23:30:51 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:56336 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758668AbdKPE3T (ORCPT ); Wed, 15 Nov 2017 23:29:19 -0500 Received: by mail-pg0-f65.google.com with SMTP id z184so14293638pgd.13; Wed, 15 Nov 2017 20:29:19 -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=gIGE11Ld59ADzdaCyZhx5QBSlxIZw3CigOf8BfbvA4Y=; b=ogPSQ0EwGyh2yyYmuiJn0nDoRAgOLtDMMUNIOKHXiPNviLRhg+gfJTaWCqtMV26zMm 2vnvroqOircjMW2Ilkc1QT3bZXF6iArVv0wR5y5azARIJd0HgSvMiIcfme9VF56ntwU9 xPwXgn0thQvRuhDt+SlS3dz4cmSieP/FiVDrRVSUcdMzIkpHCgO6JN0FgOFW4kbGRT9e +RnI+h0cc45Luj72AZWiUxM5i853geRAb3+PjOT7TaSFpfUMkyycFSkomQTgP1QLgUwN 7HxGkkPebGIezHjyZjJAqaoRwueScMxrbu8iKv4QKIL56gHFUTbcK3yuRegJa/iw84mb KsYA== 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=gIGE11Ld59ADzdaCyZhx5QBSlxIZw3CigOf8BfbvA4Y=; b=OQNsktrvuAhfIGDXi1Vca3YpYVoRoKgOLeM5NxKYIxXb/WNLGiU0BfbHG95uspK8au fwr/7xUjX1dKhyKh0EMbJnRqlMBZB5K5zRqNlhV+KrKiYpJ4opfcD7qQVyL9tDNd7vHc P1gfCdUMTooRwR5HJYx8DXIE/HP4NH93OQcr6m+C47My5tyYneBMAAN870ovNclCkv+S Q6IEQJasz/iq0nioe60rttSdqRSyeew+PjiyWqk/KeinndUVt7YGsI95yOj97MFgfcBP WaAfPVkiHJRsk+aa+XEgksEqdW6rNcDcYtjULHfQHcgQoHLJ1nDJ2x/3bX63GWmThVQJ Sdbg== X-Gm-Message-State: AJaThX7Q/39gw/hDhGNQr0XZqIhv6p+u+Z3o/8086rE7t1jPluiwkoVs 3eME7jXG//nPRtTpOwlnr68= X-Received: by 10.159.197.67 with SMTP id d3mr385337plo.409.1510806558935; Wed, 15 Nov 2017 20:29:18 -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.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:18 -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 10/12] isdn: hisax: Fix pnp_irq's error checking for setup_niccy Date: Thu, 16 Nov 2017 09:57:27 +0530 Message-Id: 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/niccy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/niccy.c b/drivers/isdn/hisax/niccy.c index e4c33cf..dfbcd2e 100644 --- a/drivers/isdn/hisax/niccy.c +++ b/drivers/isdn/hisax/niccy.c @@ -261,7 +261,7 @@ int setup_niccy(struct IsdnCard *card) card->para[1] = pnp_port_start(pnp_d, 0); card->para[2] = pnp_port_start(pnp_d, 1); card->para[0] = pnp_irq(pnp_d, 0); - if (!card->para[0] || !card->para[1] || + if (card->para[0] == -1 || !card->para[1] || !card->para[2]) { printk(KERN_ERR "NiccyPnP:some resources are " "missing %ld/%lx/%lx\n", -- 1.9.1 From 1584182759847190503@xxx Thu Nov 16 01:06:50 +0000 2017 X-GM-THRID: 1584134109068186639 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread